blob: 435992c38ad4b09979600a2768d5527dfe038945 [file] [log] [blame]
Chris Lattnera5ef57d2009-09-11 16:47:41 +00001; RUN: opt < %s -instcombine -simplifycfg -S | not grep br
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Chris Lattnerbaefa332003-08-20 16:11:05 +00003
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00004@.str_1 = internal constant [6 x i8] c"_Bool\00" ; <[6 x i8]*> [#uses=2]
Chris Lattnerbaefa332003-08-20 16:11:05 +00005
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00006define i32 @test() {
David Blaikie5a70dd12015-03-13 18:20:45 +00007 %tmp.54 = load i8, i8* getelementptr ([6 x i8], [6 x i8]* @.str_1, i64 0, i64 1) ; <i8> [#uses=1]
Tanya Lattner6e9bcee2008-02-14 07:57:12 +00008 %tmp.55 = icmp ne i8 %tmp.54, 66 ; <i1> [#uses=1]
9 br i1 %tmp.55, label %then.7, label %endif.7
Chris Lattnerbaefa332003-08-20 16:11:05 +000010
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000011then.7: ; preds = %then.7, %0
12 br label %then.7
Chris Lattnerbaefa332003-08-20 16:11:05 +000013
Tanya Lattner6e9bcee2008-02-14 07:57:12 +000014endif.7: ; preds = %0
15 ret i32 0
Chris Lattnerbaefa332003-08-20 16:11:05 +000016}
17