[llvm] r180130 - [mips] Compare splat value with element size instead of calling isUIntN.
Akira Hatanaka
ahatanaka at mips.com
Tue Apr 23 11:09:43 PDT 2013
Author: ahatanak
Date: Tue Apr 23 13:09:42 2013
New Revision: 180130
URL: http://llvm.org/viewvc/llvm-project?rev=180130&view=rev
Log:
[mips] Compare splat value with element size instead of calling isUIntN.
No intended changes in functionality.
Modified:
llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp?rev=180130&r1=180129&r2=180130&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp Tue Apr 23 13:09:42 2013
@@ -330,9 +330,9 @@ static SDValue performDSPShiftCombine(un
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),
More information about the llvm-commits
mailing list