brintos

brintos / llvm-project-archived public Read only

0
0
Text · 682 B · 9e78ae5 Raw
23 lines · plain
1; RUN: opt < %s -passes=instcombine,simplifycfg -S | FileCheck %s2; RUN: verify-uselistorder %s3 4@.str_1 = internal constant [6 x i8] c"_Bool\00"                ; <ptr> [#uses=2]5 6; Make sure there is no branch7; CHECK: define i32 @test(8; CHECK-NEXT: endif.7:9; CHECK-NEXT: ret i32 010; CHECK-NEXT: }11define i32 @test() {12        %tmp.54 = load i8, ptr getelementptr ([6 x i8], ptr @.str_1, i64 0, i64 1)            ; <i8> [#uses=1]13        %tmp.55 = icmp ne i8 %tmp.54, 66                ; <i1> [#uses=1]14        br i1 %tmp.55, label %then.7, label %endif.715 16then.7:         ; preds = %then.7, %017        br label %then.718 19endif.7:                ; preds = %020        ret i32 021}22 23