mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +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:
parent
acf4e074a9
commit
cd1d6d5b03
@ -4019,8 +4019,7 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) {
|
||||
// (X + C) ^ signbit -> (X + C + signbit)
|
||||
Constant *C = ConstantInt::get(RHS->getValue() + Op0CI->getValue());
|
||||
return BinaryOperator::createAdd(Op0I->getOperand(0), C);
|
||||
|
||||
|
||||
|
||||
}
|
||||
} else if (Op0I->getOpcode() == Instruction::Or) {
|
||||
// (X|C1)^C2 -> X^(C1|C2) iff X&~C1 == 0
|
||||
@ -6272,7 +6271,8 @@ Instruction *InstCombiner::commonIntCastTransforms(CastInst &CI) {
|
||||
case Instruction::ZExt: {
|
||||
// We need to emit an AND to clear the high bits.
|
||||
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);
|
||||
}
|
||||
case Instruction::SExt:
|
||||
|
Loading…
Reference in New Issue
Block a user