Chris Lattner | e295306 | 2003-06-05 20:12:32 +0000 | [diff] [blame] | 1 | ; This testcase causes an infinite loop in the instruction combiner, |
| 2 | ; because it things that the constant value is a not expression... and |
| 3 | ; constantly inverts the branch back and forth. |
| 4 | ; |
Dan Gohman | 1880092 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 5 | ; RUN: opt < %s -instcombine -disable-output |
Chris Lattner | e295306 | 2003-06-05 20:12:32 +0000 | [diff] [blame] | 6 | |
Tanya Lattner | 5640bd1 | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 7 | define i8 @test19(i1 %c) { |
| 8 | br i1 true, label %True, label %False |
| 9 | |
| 10 | True: ; preds = %0 |
| 11 | ret i8 1 |
| 12 | |
| 13 | False: ; preds = %0 |
| 14 | ret i8 3 |
Chris Lattner | e295306 | 2003-06-05 20:12:32 +0000 | [diff] [blame] | 15 | } |
| 16 | |