diff options
author | Andrew Trick <atrick@apple.com> | 2011-09-13 03:17:25 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-09-13 03:17:25 +0000 |
commit | 5b28cc84f0846a44599fd7779a9f83c115e0ddc7 (patch) | |
tree | e651e9bcff93d9599dbb346d39ed65be004ad6ac /llvm/test/Transforms/LoopSimplify | |
parent | 1191773a6252a128026ff30234d0a902ffe004b5 (diff) | |
download | bcm5719-llvm-5b28cc84f0846a44599fd7779a9f83c115e0ddc7.tar.gz bcm5719-llvm-5b28cc84f0846a44599fd7779a9f83c115e0ddc7.zip |
Generalize test case to handle multiple indvars modes.
llvm-svn: 139578
Diffstat (limited to 'llvm/test/Transforms/LoopSimplify')
-rw-r--r-- | llvm/test/Transforms/LoopSimplify/single-backedge.ll | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/test/Transforms/LoopSimplify/single-backedge.ll b/llvm/test/Transforms/LoopSimplify/single-backedge.ll index f9567f12429..aedd6f23091 100644 --- a/llvm/test/Transforms/LoopSimplify/single-backedge.ll +++ b/llvm/test/Transforms/LoopSimplify/single-backedge.ll @@ -1,8 +1,11 @@ -; The loop canonicalization pass should guarantee that there is one backedge -; for all loops. This allows the -indvars pass to recognize the %IV +; The loop canonicalization pass should guarantee that there is one backedge +; for all loops. This allows the -indvars pass to recognize the %IV ; induction variable in this testcase. -; RUN: opt < %s -indvars -S | grep indvar +; RUN: opt < %s -indvars -S | FileCheck %s +; CHECK: Loop.backedge: +; CHECK-NOT: br +; CHECK: br label %Loop define i32 @test(i1 %C) { ; <label>:0 |