diff options
| author | Dan Gohman <gohman@apple.com> | 2009-02-16 00:56:15 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-02-16 00:56:15 +0000 |
| commit | 73f794af6a4814ab81743f3b1237e4d042bc87d9 (patch) | |
| tree | 81f2f0547fb87a10fd1ee49f6fc8eb9b2182aa07 /llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll | |
| parent | 9cdfd44521e035ccc571b37d6b48fe391b00961e (diff) | |
| download | bcm5719-llvm-73f794af6a4814ab81743f3b1237e4d042bc87d9.tar.gz bcm5719-llvm-73f794af6a4814ab81743f3b1237e4d042bc87d9.zip | |
Rename IndVarsSimplify to IndVarSimplify, to be consistent with
the name used in the code that these tests are for.
llvm-svn: 64624
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll')
| -rw-r--r-- | llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll b/llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll new file mode 100644 index 00000000000..96190991f73 --- /dev/null +++ b/llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar + +define i32 @test() { +; <label>:0 + br i1 true, label %LoopHead, label %LoopHead + +LoopHead: ; preds = %LoopHead, %0, %0 + %A = phi i32 [ 7, %0 ], [ 7, %0 ], [ %B, %LoopHead ] ; <i32> [#uses=1] + %B = add i32 %A, 1 ; <i32> [#uses=2] + br i1 false, label %LoopHead, label %Out + +Out: ; preds = %LoopHead + ret i32 %B +} + |

