diff options
Diffstat (limited to 'test/Analysis/Andersens/2008-03-19-External.ll')
-rw-r--r-- | test/Analysis/Andersens/2008-03-19-External.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/Andersens/2008-03-19-External.ll b/test/Analysis/Andersens/2008-03-19-External.ll new file mode 100644 index 000000000000..c4f1ff083855 --- /dev/null +++ b/test/Analysis/Andersens/2008-03-19-External.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -anders-aa -gvn | llvm-dis | not grep undef +; PR2160 + +declare void @f(i32*) + +define i32 @g() { +entry: + %tmp = alloca i32 ; <i32*> [#uses=2] + call void @f( i32* %tmp ) + %tmp2 = load i32* %tmp ; <i32> [#uses=1] + ret i32 %tmp2 +} |