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:
Chris Lattner
2007-04-02 05:48:58 +00:00
parent acf4e074a9
commit cd1d6d5b03

View File

@@ -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: