Fix testcase
authorChris Lattner <sabre@nondot.org>
Mon, 24 Feb 2003 23:14:07 +0000 (23:14 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Feb 2003 23:14:07 +0000 (23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5621 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/BasicAA/licmtest.ll
test/Transforms/BasicAA/licmtest.ll

index f54a130791ffc24f139089a277bc88a8eeb81267..1e4255d4efe6d62022c38e5f53e58fba12c43acb 100644 (file)
@@ -4,7 +4,7 @@
 ; not be able to eliminate the load itself, without licm's help.  This is 
 ; because, for GCSE, the load is killed by the dummy basic block.
 
-; RUN: if as < %s | opt -basicaa -licm -gcse -simplifycfg -instcombine | dis | grep ToRemove
+; RUN: if as < %s | opt -basicaa -licm -load-vn -gcse -instcombine | dis | grep ToRemove
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
 implementation
 
 int %test(bool %c) {
-       %ToRemove = load int* %A
-       br label %Loop
-Loop:
        %Atmp = load int* %A
+       br bool %c, label %Dummy, label %Loop
+Loop:
+       %ToRemove = load int* %A
        store int %Atmp, int* %B  ; Store cannot alias %A
 
        br bool %c, label %Out, label %Loop
index f54a130791ffc24f139089a277bc88a8eeb81267..1e4255d4efe6d62022c38e5f53e58fba12c43acb 100644 (file)
@@ -4,7 +4,7 @@
 ; not be able to eliminate the load itself, without licm's help.  This is 
 ; because, for GCSE, the load is killed by the dummy basic block.
 
-; RUN: if as < %s | opt -basicaa -licm -gcse -simplifycfg -instcombine | dis | grep ToRemove
+; RUN: if as < %s | opt -basicaa -licm -load-vn -gcse -instcombine | dis | grep ToRemove
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
 implementation
 
 int %test(bool %c) {
-       %ToRemove = load int* %A
-       br label %Loop
-Loop:
        %Atmp = load int* %A
+       br bool %c, label %Dummy, label %Loop
+Loop:
+       %ToRemove = load int* %A
        store int %Atmp, int* %B  ; Store cannot alias %A
 
        br bool %c, label %Out, label %Loop