mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Remove unintentionally committed code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23382 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -3368,7 +3368,6 @@ Instruction *InstCombiner::visitShiftInst(ShiftInst &I) {
|
|||||||
if (ShiftInst *XS = dyn_cast<ShiftInst>(Op0BO->getOperand(1)))
|
if (ShiftInst *XS = dyn_cast<ShiftInst>(Op0BO->getOperand(1)))
|
||||||
if (isLeftShift && XS->hasOneUse() && XS->getOperand(1) == CUI &&
|
if (isLeftShift && XS->hasOneUse() && XS->getOperand(1) == CUI &&
|
||||||
XS->getOpcode() == Instruction::Shr) {
|
XS->getOpcode() == Instruction::Shr) {
|
||||||
break;
|
|
||||||
Instruction *YS = new ShiftInst(Instruction::Shl,
|
Instruction *YS = new ShiftInst(Instruction::Shl,
|
||||||
Op0BO->getOperand(0), CUI,
|
Op0BO->getOperand(0), CUI,
|
||||||
Op0BO->getName());
|
Op0BO->getName());
|
||||||
@@ -3379,7 +3378,6 @@ Instruction *InstCombiner::visitShiftInst(ShiftInst &I) {
|
|||||||
InsertNewInstBefore(X, I); // (X + (Y << C))
|
InsertNewInstBefore(X, I); // (X + (Y << C))
|
||||||
Constant *C2 = ConstantInt::getAllOnesValue(X->getType());
|
Constant *C2 = ConstantInt::getAllOnesValue(X->getType());
|
||||||
C2 = ConstantExpr::getShl(C2, CUI);
|
C2 = ConstantExpr::getShl(C2, CUI);
|
||||||
std::cerr << "FOLD1: " << *Op0BO;
|
|
||||||
return BinaryOperator::createAnd(X, C2);
|
return BinaryOperator::createAnd(X, C2);
|
||||||
}
|
}
|
||||||
// Fall through.
|
// Fall through.
|
||||||
@@ -3398,7 +3396,6 @@ Instruction *InstCombiner::visitShiftInst(ShiftInst &I) {
|
|||||||
InsertNewInstBefore(X, I); // (X + (Y << C))
|
InsertNewInstBefore(X, I); // (X + (Y << C))
|
||||||
Constant *C2 = ConstantInt::getAllOnesValue(X->getType());
|
Constant *C2 = ConstantInt::getAllOnesValue(X->getType());
|
||||||
C2 = ConstantExpr::getShl(C2, CUI);
|
C2 = ConstantExpr::getShl(C2, CUI);
|
||||||
std::cerr << "FOLD2: " << *Op0BO;
|
|
||||||
return BinaryOperator::createAnd(X, C2);
|
return BinaryOperator::createAnd(X, C2);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user