aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Analysis/BasicAA/licmtest.ll8
-rw-r--r--test/Transforms/BasicAA/licmtest.ll8
2 files changed, 8 insertions, 8 deletions
diff --git a/test/Analysis/BasicAA/licmtest.ll b/test/Analysis/BasicAA/licmtest.ll
index f54a130791..1e4255d4ef 100644
--- a/test/Analysis/BasicAA/licmtest.ll
+++ b/test/Analysis/BasicAA/licmtest.ll
@@ -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
@@ -14,10 +14,10 @@
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
diff --git a/test/Transforms/BasicAA/licmtest.ll b/test/Transforms/BasicAA/licmtest.ll
index f54a130791..1e4255d4ef 100644
--- a/test/Transforms/BasicAA/licmtest.ll
+++ b/test/Transforms/BasicAA/licmtest.ll
@@ -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
@@ -14,10 +14,10 @@
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