diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2013-04-23 18:09:42 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-04-23 18:09:42 +0000 |
| commit | e311b00a912b9f1a1e8fc1d28b2e58a015d250ec (patch) | |
| tree | 2d5e89f4a2bc3e8d49ad59e9dea37fc109cb924d /lib | |
| parent | ed5707baf9be36c0d06c278f589b6c55db8b96c0 (diff) | |
| download | external_llvm-e311b00a912b9f1a1e8fc1d28b2e58a015d250ec.zip external_llvm-e311b00a912b9f1a1e8fc1d28b2e58a015d250ec.tar.gz external_llvm-e311b00a912b9f1a1e8fc1d28b2e58a015d250ec.tar.bz2 | |
[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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Target/Mips/MipsSEISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsSEISelLowering.cpp b/lib/Target/Mips/MipsSEISelLowering.cpp index 7ba3123..7e103bb 100644 --- a/lib/Target/Mips/MipsSEISelLowering.cpp +++ b/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), |
