Reapply address space patch after fixing an issue in MemCopyOptimizer.
[oota-llvm.git] / test / Analysis / BasicAA / 2003-09-19-LocalArgument.ll
index ee6ac9c65a224e6a2a3343a05eabad97950f8e22..637d8f0db48625fef3a6ec85b9958a8500cc39d6 100644 (file)
@@ -1,12 +1,12 @@
 ; In this test, a local alloca cannot alias an incoming argument.
 
-; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse -instcombine | llvm-dis | not grep sub
+; RUN: opt < %s -gvn -instcombine -S | not grep sub
 
-int %test(int* %P) {
-       %X = alloca int
-       %V1 = load int* %P
-       store int 0, int* %X
-       %V2 = load int* %P
-       %Diff = sub int %V1, %V2
-       ret int %Diff
+define i32 @test(i32* %P) {
+       %X = alloca i32
+       %V1 = load i32* %P
+       store i32 0, i32* %X
+       %V2 = load i32* %P
+       %Diff = sub i32 %V1, %V2
+       ret i32 %Diff
 }