[PATCH] D19488: [CodeGenPrepare] use branch weight metadata to decide if a select should be turned into a branch
David Li via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 14:26:34 PDT 2016
davidxl added inline comments.
================
Comment at: lib/CodeGen/CodeGenPrepare.cpp:4558
@@ +4557,3 @@
+ auto Probability = BranchProbability::getBranchProbability(Max, Sum);
+ if (Probability > TLI->getPredictableBranchThreshold())
+ return true;
----------------
Hal, this is an example that profile meta data is directly looked at instead of via BPI (I don't have an issue with it -- but just a note this scenario exists).
http://reviews.llvm.org/D19488
More information about the llvm-commits
mailing list