[llvm-commits] [llvm] r48655 - /llvm/trunk/test/Analysis/Andersens/2008-03-19-External.ll
Duncan Sands
baldrick at free.fr
Fri Mar 21 13:22:11 PDT 2008
Author: baldrick
Date: Fri Mar 21 15:22:11 2008
New Revision: 48655
URL: http://llvm.org/viewvc/llvm-project?rev=48655&view=rev
Log:
Testcase for PR2160.
Added:
llvm/trunk/test/Analysis/Andersens/2008-03-19-External.ll
Added: llvm/trunk/test/Analysis/Andersens/2008-03-19-External.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/Andersens/2008-03-19-External.ll?rev=48655&view=auto
==============================================================================
--- llvm/trunk/test/Analysis/Andersens/2008-03-19-External.ll (added)
+++ llvm/trunk/test/Analysis/Andersens/2008-03-19-External.ll Fri Mar 21 15:22:11 2008
@@ -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
+}
More information about the llvm-commits
mailing list