diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-14 15:56:33 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-14 15:56:33 +0000 |
commit | 2defea0efa67969c06a00b7b384ef5bf93ad50ea (patch) | |
tree | dff371b2c26a7f116dce5d3f72cc420437f79522 /llvm/lib/Analysis | |
parent | 7a20ed762761c93f517e0a2c8a809ba57ab4831a (diff) | |
download | bcm5719-llvm-2defea0efa67969c06a00b7b384ef5bf93ad50ea.tar.gz bcm5719-llvm-2defea0efa67969c06a00b7b384ef5bf93ad50ea.zip |
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
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/BranchProbabilityInfo.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/BranchProbabilityInfo.cpp b/llvm/lib/Analysis/BranchProbabilityInfo.cpp index d7cee3afaf5..14800f4a28b 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<Instruction>(CI->getOperand(0))) - if (LHS->getOpcode() == Instruction::And) - if (ConstantInt *AndRHS = dyn_cast<ConstantInt>(LHS->getOperand(1))) - if (AndRHS->getUniqueInteger().isPowerOf2()) - return false; - bool isProb; if (CV->isZero()) { switch (CI->getPredicate()) { |