mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
[mips] Compare splat value with element size instead of calling isUIntN.
No intended changes in functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed5707baf9
commit
e311b00a91
@ -330,9 +330,9 @@ static SDValue performDSPShiftCombine(unsigned Opc, SDNode *N, EVT Ty,
|
||||
|
||||
if (!BV ||
|
||||
!BV->isConstantSplat(SplatValue, SplatUndef, SplatBitSize, HasAnyUndefs,
|
||||
EltSize,!Subtarget->isLittle()) ||
|
||||
EltSize, !Subtarget->isLittle()) ||
|
||||
(SplatBitSize != EltSize) ||
|
||||
!isUIntN(Log2_32(EltSize), SplatValue.getZExtValue()))
|
||||
(SplatValue.getZExtValue() >= EltSize))
|
||||
return SDValue();
|
||||
|
||||
return DAG.getNode(Opc, N->getDebugLoc(), Ty, N->getOperand(0),
|
||||
|
Loading…
Reference in New Issue
Block a user