mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Wrap long line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35588 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4019,8 +4019,7 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) {
|
|||||||
// (X + C) ^ signbit -> (X + C + signbit)
|
// (X + C) ^ signbit -> (X + C + signbit)
|
||||||
Constant *C = ConstantInt::get(RHS->getValue() + Op0CI->getValue());
|
Constant *C = ConstantInt::get(RHS->getValue() + Op0CI->getValue());
|
||||||
return BinaryOperator::createAdd(Op0I->getOperand(0), C);
|
return BinaryOperator::createAdd(Op0I->getOperand(0), C);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} else if (Op0I->getOpcode() == Instruction::Or) {
|
} else if (Op0I->getOpcode() == Instruction::Or) {
|
||||||
// (X|C1)^C2 -> X^(C1|C2) iff X&~C1 == 0
|
// (X|C1)^C2 -> X^(C1|C2) iff X&~C1 == 0
|
||||||
@@ -6272,7 +6271,8 @@ Instruction *InstCombiner::commonIntCastTransforms(CastInst &CI) {
|
|||||||
case Instruction::ZExt: {
|
case Instruction::ZExt: {
|
||||||
// We need to emit an AND to clear the high bits.
|
// We need to emit an AND to clear the high bits.
|
||||||
assert(SrcBitSize < DestBitSize && "Not a zext?");
|
assert(SrcBitSize < DestBitSize && "Not a zext?");
|
||||||
Constant *C = ConstantInt::get(APInt::getLowBitsSet(DestBitSize, SrcBitSize));
|
Constant *C = ConstantInt::get(APInt::getLowBitsSet(DestBitSize,
|
||||||
|
SrcBitSize));
|
||||||
return BinaryOperator::createAnd(Res, C);
|
return BinaryOperator::createAnd(Res, C);
|
||||||
}
|
}
|
||||||
case Instruction::SExt:
|
case Instruction::SExt:
|
||||||
|
Reference in New Issue
Block a user