From 2defea0efa67969c06a00b7b384ef5bf93ad50ea Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 14 Apr 2015 15:56:33 +0000 Subject: Revert "The code that originally made me discover this is:" This reverts commit r234898. CodeGen/ARM/2013-10-11-select-stalls.ll was faling. llvm-svn: 234903 --- llvm/lib/Analysis/BranchProbabilityInfo.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'llvm/lib/Analysis/BranchProbabilityInfo.cpp') diff --git a/llvm/lib/Analysis/BranchProbabilityInfo.cpp b/llvm/lib/Analysis/BranchProbabilityInfo.cpp index d7cee3a..14800f4 100644 --- a/llvm/lib/Analysis/BranchProbabilityInfo.cpp +++ b/llvm/lib/Analysis/BranchProbabilityInfo.cpp @@ -379,14 +379,6 @@ bool BranchProbabilityInfo::calcZeroHeuristics(BasicBlock *BB) { if (!CV) return false; - // If the LHS is the result of AND'ing a value with a single bit bitmask, - // we don't have information about probabilities. - if (Instruction *LHS = dyn_cast(CI->getOperand(0))) - if (LHS->getOpcode() == Instruction::And) - if (ConstantInt *AndRHS = dyn_cast(LHS->getOperand(1))) - if (AndRHS->getUniqueInteger().isPowerOf2()) - return false; - bool isProb; if (CV->isZero()) { switch (CI->getPredicate()) { -- cgit v1.1