Home | History | Annotate | Download | only in LowerExpectIntrinsic
      1 ; RUN: opt -lower-expect -S < %s
      2 ; RUN: opt -passes='function(lower-expect)' -S < %s
      3 
      4 define i64 @foo(i64 %arg) #0 {
      5 bb:
      6   %tmp = alloca i64, align 8
      7   store i64 %arg, i64* %tmp, align 8
      8   %tmp1 = load i64, i64* %tmp, align 8
      9   %tmp2 = load i64, i64* %tmp, align 8
     10   %tmp3 = call i64 @llvm.expect.i64(i64 %tmp1, i64 %tmp2)
     11   ret i64 %tmp3
     12 }
     13 
     14 ; Function Attrs: nounwind readnone
     15 declare i64 @llvm.expect.i64(i64, i64)
     16 
     17 
     18 !llvm.module.flags = !{!0}
     19 !llvm.ident = !{!1}
     20 
     21 !0 = !{i32 1, !"wchar_size", i32 4}
     22 !1 = !{!"clang version 5.0.0 (trunk 304723)"}
     23