summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsSEISelLowering.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-04-23 18:09:42 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-04-23 18:09:42 +0000
commite9d0b318b1dd5e0503deaa3c7b3ad9158c4082e8 (patch)
treede4c5769334e8a3133b01e4c6739081011e7400f /llvm/lib/Target/Mips/MipsSEISelLowering.cpp
parent2d4cca35c385e4ac9d6e4b7c7db0f8a5f289f929 (diff)
downloadbcm5719-llvm-e9d0b318b1dd5e0503deaa3c7b3ad9158c4082e8.tar.gz
bcm5719-llvm-e9d0b318b1dd5e0503deaa3c7b3ad9158c4082e8.zip
[mips] Compare splat value with element size instead of calling isUIntN.
No intended changes in functionality. llvm-svn: 180130
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSEISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsSEISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEISelLowering.cpp b/llvm/lib/Target/Mips/MipsSEISelLowering.cpp
index 7ba31237115..7e103bbef74 100644
--- a/llvm/lib/Target/Mips/MipsSEISelLowering.cpp
+++ b/llvm/lib/Target/Mips/MipsSEISelLowering.cpp
@@ -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),
OpenPOWER on IntegriCloud