Guest User

Untitled

a guest
Apr 12th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LLVM 0.73 KB | None | 0 0
  1. !0 = metadata !{metadata !"branch_weights", i32 4, i32 64}
  2. declare void @f(...)
  3. declare void @g(...)
  4.  
  5. define void @test_preserve_profile_metadata(i32 %a, float %b) nounwind uwtable {
  6. ; CHECK: test_preserve_profile_metadata
  7. ; CHECK: br i1 {{.*}}, label %if.then, label %if.else, !prof !0
  8.  
  9. entry:
  10.   %tobool = icmp eq i32 %a, 0
  11.   br i1 %tobool, label %land.end, label %land.rhs
  12.  
  13. land.rhs:
  14.   %tobool1 = fcmp une float %b, 0.000000e+00
  15.   br label %land.end
  16.  
  17. land.end:
  18.   %0 = phi i1 [ false, %entry ], [ %tobool1, %land.rhs ]
  19.   br i1 %0, label %if.then, label %if.else, !prof !0
  20.  
  21. if.then:
  22.   call void (...)* @f() nounwind
  23.   br label %if.end
  24.  
  25. if.else:
  26.   call void (...)* @g() nounwind
  27.   br label %if.end
  28.  
  29. if.end:
  30.   ret void
  31. }
Add Comment
Please, Sign In to add comment