llvm.org GIT mirror llvm / e1aa33f
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 Owen Anderson 9 years ago
2 changed file(s) with 23 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
+0
-25
test/Transforms/JumpThreading/2010-08-31-InfiniteRecursion.ll less more
None ; RUN: opt < %s -jump-threading -disable-output
1
2 define void @test() nounwind ssp {
3 entry:
4 br i1 undef, label %bb269.us.us, label %bb269.us.us.us
5
6 bb269.us.us.us:
7 %indvar = phi i64 [ %indvar.next, %bb287.us.us.us ], [ 0, %entry ]
8 %0 = icmp eq i16 undef, 0
9 br i1 %0, label %bb287.us.us.us, label %bb286.us.us.us
10
11 bb287.us.us.us:
12 %indvar.next = add i64 %indvar, 1
13 %exitcond = icmp eq i64 %indvar.next, 4
14 br i1 %exitcond, label %bb288.bb289.loopexit_crit_edge, label %bb269.us.us.us
15
16 bb286.us.us.us:
17 unreachable
18
19 bb269.us.us:
20 unreachable
21
22 bb288.bb289.loopexit_crit_edge:
23 unreachable
24 }
460460 ret void
461461 }
462462
463 define void @test17() {
464 entry:
465 br i1 undef, label %bb269.us.us, label %bb269.us.us.us
466
467 bb269.us.us.us:
468 %indvar = phi i64 [ %indvar.next, %bb287.us.us.us ], [ 0, %entry ]
469 %0 = icmp eq i16 undef, 0
470 br i1 %0, label %bb287.us.us.us, label %bb286.us.us.us
471
472 bb287.us.us.us:
473 %indvar.next = add i64 %indvar, 1
474 %exitcond = icmp eq i64 %indvar.next, 4
475 br i1 %exitcond, label %bb288.bb289.loopexit_crit_edge, label %bb269.us.us.us
476
477 bb286.us.us.us:
478 unreachable
479
480 bb269.us.us:
481 unreachable
482
483 bb288.bb289.loopexit_crit_edge:
484 unreachable
485 }