Use loop deletion instead of ADCE for removing loops.
authorOwen Anderson <resistor@mac.com>
Fri, 16 May 2008 04:27:38 +0000 (04:27 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 16 May 2008 04:27:38 +0000 (04:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51178 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/IndVarsSimplify/exit_value_tests.ll
test/Transforms/IndVarsSimplify/loop_evaluate_1.ll
test/Transforms/IndVarsSimplify/loop_evaluate_2.ll
test/Transforms/IndVarsSimplify/tripcount_compute.ll

index 5e26ea22d983ec00baddafc54ea8d69d553d65f4..b39f40f4866499e9e9335ce1cfa913e5291a99ba 100644 (file)
@@ -2,7 +2,7 @@
 ; these loops all have predictable exit values we can replace the use outside
 ; of the loop with a closed-form computation, making the loop dead.
 ;
-; RUN: llvm-as < %s | opt -indvars -adce -simplifycfg | \
+; RUN: llvm-as < %s | opt -indvars -loop-deletion -simplifycfg | \
 ; RUN:   llvm-dis | not grep br
 
 define i32 @polynomial_constant() {
index ffff30ae405a3b0d3c158f8644bc9187680b905d..dfb42e4feae359ff7579f8c1d94a7f432a9ea90d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -indvars -adce -simplifycfg | llvm-dis | not grep br
+; RUN: llvm-as < %s | opt -indvars -loop-deletion -simplifycfg | llvm-dis | not grep br
 ;
 ; Testcase distilled from 256.bzip2
 
index 635950aed661897cc8f61b22d23125610d906e70..efcf20a93442de7937f0e563119a2bed44a7e74f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -indvars -adce -simplifycfg | opt \
+; RUN: llvm-as < %s | opt -indvars -loop-deletion -simplifycfg | opt \
 ; RUN:     -analyze -loops | not grep "^Loop Containing" 
 ; PR1179
 
index 1abc82d635c3af12437e667cbbb21f2b50424cba..9ffce813023a07561d064a250848dfcc745040d0 100644 (file)
@@ -3,7 +3,7 @@
 ; the exit value of the loop will be for some value, allowing us to substitute
 ; it directly into users outside of the loop, making the loop dead.
 ;
-; RUN: llvm-as < %s | opt -indvars -adce -simplifycfg | llvm-dis | not grep br
+; RUN: llvm-as < %s | opt -indvars -loop-deletion -simplifycfg | llvm-dis | not grep br
 
 define i32 @linear_setne() {
 entry: