diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-14 18:15:00 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-14 18:15:00 +0000 |
commit | 533c67ba9802123f08946ac8002d1223067318ca (patch) | |
tree | 8b73b4f05be199cadc6650bc30a0e75810bcec49 /test/Transforms/IndVarSimplify/loop_evaluate11.ll | |
parent | 6bfead31791a7ef7739d451eeaf7e5cf7eea2485 (diff) | |
download | external_llvm-533c67ba9802123f08946ac8002d1223067318ca.zip external_llvm-533c67ba9802123f08946ac8002d1223067318ca.tar.gz external_llvm-533c67ba9802123f08946ac8002d1223067318ca.tar.bz2 |
Add a testcase for a bug fixed by r75634.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/IndVarSimplify/loop_evaluate11.ll')
-rw-r--r-- | test/Transforms/IndVarSimplify/loop_evaluate11.ll | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/Transforms/IndVarSimplify/loop_evaluate11.ll b/test/Transforms/IndVarSimplify/loop_evaluate11.ll new file mode 100644 index 0000000..71bd5a7 --- /dev/null +++ b/test/Transforms/IndVarSimplify/loop_evaluate11.ll @@ -0,0 +1,36 @@ +; RUN: llvm-as < %s | opt -domfrontier -indvars -loop-deletion + +target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" + +define void @slap_sl_mem_create() nounwind { +entry: + br label %bb15 + +bb15: ; preds = %bb15, %entry + %order_end.0 = phi i32 [ 0, %entry ], [ %tmp, %bb15 ] ; <i32> [#uses=1] + %tmp = add i32 %order_end.0, 1 ; <i32> [#uses=2] + br i1 undef, label %bb17, label %bb15 + +bb17: ; preds = %bb17, %bb15 + %order_start.0 = phi i32 [ %tmp1, %bb17 ], [ 0, %bb15 ] ; <i32> [#uses=2] + %tmp1 = add i32 %order_start.0, 1 ; <i32> [#uses=2] + %tmp2 = icmp eq i32 undef, 0 ; <i1> [#uses=1] + br i1 %tmp2, label %bb18, label %bb17 + +bb18: ; preds = %bb17 + %tmp3 = sub i32 %tmp, %tmp1 ; <i32> [#uses=0] + br label %bb59 + +bb51: ; preds = %bb59 + %tmp4 = add i32 %order_start.0, 2 ; <i32> [#uses=1] + %tmp5 = add i32 %tmp4, undef ; <i32> [#uses=1] + %tmp6 = lshr i32 undef, %tmp5 ; <i32> [#uses=1] + %tmp7 = icmp eq i32 %tmp6, 0 ; <i1> [#uses=1] + br i1 %tmp7, label %bb52, label %bb59 + +bb59: ; preds = %bb51, %bb18 + br label %bb51 + +bb52: ; preds = %bb51 + unreachable +} |