2003-06-06 04:12:32 +08:00
|
|
|
; This testcase causes an infinite loop in the instruction combiner,
|
|
|
|
; because it things that the constant value is a not expression... and
|
|
|
|
; constantly inverts the branch back and forth.
|
|
|
|
;
|
2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -instcombine -disable-output
|
2008-03-01 17:15:35 +08:00
|
|
|
|
|
|
|
define i8 @test19(i1 %c) {
|
|
|
|
br i1 true, label %True, label %False
|
|
|
|
|
|
|
|
True: ; preds = %0
|
|
|
|
ret i8 1
|
|
|
|
|
|
|
|
False: ; preds = %0
|
|
|
|
ret i8 3
|
2003-06-06 04:12:32 +08:00
|
|
|
}
|
|
|
|
|