diff options
author | Owen Anderson <resistor@mac.com> | 2010-08-31 20:27:17 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-08-31 20:27:17 +0000 |
commit | e1aa33f2a2a9f8a378b3283b91d34c06487a4ca0 (patch) | |
tree | a9b05234a2ed17d5f06bf4b8ebea973bd2b0a4d1 /test/Transforms/JumpThreading/crash.ll | |
parent | 0eb355ab6be61ebd7adb407e02a3604be032b99e (diff) | |
download | external_llvm-e1aa33f2a2a9f8a378b3283b91d34c06487a4ca0.zip external_llvm-e1aa33f2a2a9f8a378b3283b91d34c06487a4ca0.tar.gz external_llvm-e1aa33f2a2a9f8a378b3283b91d34c06487a4ca0.tar.bz2 |
Merge 2010-08-31-InfiniteRecursion.ll into crash.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading/crash.ll')
-rw-r--r-- | test/Transforms/JumpThreading/crash.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Transforms/JumpThreading/crash.ll b/test/Transforms/JumpThreading/crash.ll index cfd9042..751bc65 100644 --- a/test/Transforms/JumpThreading/crash.ll +++ b/test/Transforms/JumpThreading/crash.ll @@ -461,3 +461,26 @@ if.end: ret void } +define void @test17() { +entry: + br i1 undef, label %bb269.us.us, label %bb269.us.us.us + +bb269.us.us.us: + %indvar = phi i64 [ %indvar.next, %bb287.us.us.us ], [ 0, %entry ] + %0 = icmp eq i16 undef, 0 + br i1 %0, label %bb287.us.us.us, label %bb286.us.us.us + +bb287.us.us.us: + %indvar.next = add i64 %indvar, 1 + %exitcond = icmp eq i64 %indvar.next, 4 + br i1 %exitcond, label %bb288.bb289.loopexit_crit_edge, label %bb269.us.us.us + +bb286.us.us.us: + unreachable + +bb269.us.us: + unreachable + +bb288.bb289.loopexit_crit_edge: + unreachable +} |