[PATCH] Teach IRCE to look at branch weights when recognizing range checks
hfinkel at anl.gov
hfinkel at anl.gov
Tue Jan 27 06:13:34 PST 2015
================
Comment at: lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:358
@@ +357,3 @@
+
+static bool GetBranchWeights(BranchInst *BI, uint64_t &LeftWeight,
+ uint64_t &RightWeight) {
----------------
Please don't access the branch_weights metadata directly. Use the BranchProbabilityInfo analysis (which also includes some useful static heuristics).
http://reviews.llvm.org/D7192
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list