1 ; RUN: opt < %s -jump-threading -disable-output -verify-dom-info 2 3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 4 target triple = "x86_64-unknown-linux-gnu" 5 6 @global = external local_unnamed_addr global i64, align 8 7 @global.1 = external local_unnamed_addr global i64, align 8 8 @global.2 = external local_unnamed_addr global i64, align 8 9 10 ; Function Attrs: norecurse noreturn nounwind uwtable 11 define void @hoge() local_unnamed_addr #0 { 12 bb: 13 br label %bb1 14 15 bb1: ; preds = %bb26, %bb 16 %tmp = load i64, i64* @global, align 8, !tbaa !1 17 %tmp2 = icmp eq i64 %tmp, 0 18 br i1 %tmp2, label %bb27, label %bb3 19 20 bb3: ; preds = %bb1 21 %tmp4 = load i64, i64* @global.1, align 8, !tbaa !1 22 %tmp5 = icmp eq i64 %tmp4, 0 23 br i1 %tmp5, label %bb23, label %bb23 24 25 bb23: ; preds = %bb3, %bb3 26 br label %bb26 27 28 bb26: ; preds = %bb27, %bb23 29 br label %bb1 30 31 bb27: ; preds = %bb1 32 br label %bb26 33 } 34 35 attributes #0 = { norecurse noreturn nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } 36 37 !llvm.ident = !{!0} 38 39 !0 = !{!"clang version 7.0.0 "} 40 !1 = !{!2, !2, i64 0} 41 !2 = !{!"long", !3, i64 0} 42 !3 = !{!"omnipotent char", !4, i64 0} 43 !4 = !{!"Simple C/C++ TBAA"} 44