mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Remove unnecessary parens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ce80051170
commit
58c2587ed8
@ -4076,8 +4076,8 @@ ConstantFoldBIT_CONVERTofBUILD_VECTOR(SDNode *BV, EVT DstEltVT) {
|
||||
if (Op.getOpcode() == ISD::UNDEF) continue;
|
||||
EltIsUndef = false;
|
||||
|
||||
NewBits |= (APInt(cast<ConstantSDNode>(Op)->getAPIntValue()).
|
||||
zextOrTrunc(SrcBitSize).zext(DstBitSize));
|
||||
NewBits |= APInt(cast<ConstantSDNode>(Op)->getAPIntValue()).
|
||||
zextOrTrunc(SrcBitSize).zext(DstBitSize);
|
||||
}
|
||||
|
||||
if (EltIsUndef)
|
||||
|
@ -6354,8 +6354,8 @@ bool BuildVectorSDNode::isConstantSplat(APInt &SplatValue,
|
||||
if (OpVal.getOpcode() == ISD::UNDEF)
|
||||
SplatUndef |= APInt::getBitsSet(sz, BitPos, BitPos + EltBitSize);
|
||||
else if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(OpVal))
|
||||
SplatValue |= (APInt(CN->getAPIntValue()).zextOrTrunc(EltBitSize).
|
||||
zextOrTrunc(sz) << BitPos);
|
||||
SplatValue |= APInt(CN->getAPIntValue()).zextOrTrunc(EltBitSize).
|
||||
zextOrTrunc(sz) << BitPos;
|
||||
else if (ConstantFPSDNode *CN = dyn_cast<ConstantFPSDNode>(OpVal))
|
||||
SplatValue |= CN->getValueAPF().bitcastToAPInt().zextOrTrunc(sz) <<BitPos;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user