[PATCH] Don't pretend to have probability information if the result of a bitwise and is compared against 0

Daniel Jasper djasper at google.com
Fri Apr 3 00:33:22 PDT 2015


Ping?


================
Comment at: lib/Analysis/BranchProbabilityInfo.cpp:385
@@ -384,1 +384,3 @@
     case CmpInst::ICMP_EQ:
+      {
+        Instruction *LHS = dyn_cast<Instruction>(CI->getOperand(0));
----------------
chandlerc wrote:
> If you need braces, just put them around the entire case.
Done.

http://reviews.llvm.org/D8165

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list