[PATCH] [CodeGenPrepare.cpp] Feedback on changing logic when to convert select to branch

James Molloy james.molloy at arm.com
Mon Oct 27 08:28:16 PDT 2014


Hi Gerolf,

The concept looks fine to me, there's no real functionality change here. One inline comment though.

James

================
Comment at: lib/CodeGen/CodeGenPrepare.cpp:3069
@@ +3068,3 @@
+                         TLI->isPredictableSelectExpensive() ||
+                         isFormingBranchFromSelectProfitable;
+  if (!ConvertToBranch)
----------------
Don't you want "isFormingBranchFromSelectProfitable(SI)" here?

http://reviews.llvm.org/D5998






More information about the llvm-commits mailing list