[PATCH] D19488: [CodeGenPrepare] use branch weight metadata to decide if a select should be turned into a branch

Junmo Park via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 03:26:24 PDT 2016


flyingforyou accepted this revision.
flyingforyou added a comment.

LGTM.


================
Comment at: test/CodeGen/X86/cmov-into-branch.ll:101
@@ +100,3 @@
+; Either one should become a branch rather than conditional move.
+; TODO: But likely true vs. likely false should affect basic block placement? 
+define i32 @weighted_select3(i32 %a, i32 %b) {
----------------
Please, remove trailing white space.


http://reviews.llvm.org/D19488





More information about the llvm-commits mailing list