mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-04 06:26:28 +00:00
Revert "The code that originally made me discover this is:"
This reverts commit r234898. CodeGen/ARM/2013-10-11-select-stalls.ll was faling. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user