summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-11-26 11:17:43 +0000
committerBill Wendling <isanbard@gmail.com>2013-11-26 11:17:43 +0000
commit9f71b97c0cd7ff930164fafe8d6d5b5a9b871c86 (patch)
tree2082b83b0697febc765ff6d1c8fb98827ff9ffe0 /lib/Target
parent876f8f123e9a52bf8e970f9e04b93700380b5dbf (diff)
downloadllvm-9f71b97c0cd7ff930164fafe8d6d5b5a9b871c86.tar.gz
llvm-9f71b97c0cd7ff930164fafe8d6d5b5a9b871c86.tar.bz2
llvm-9f71b97c0cd7ff930164fafe8d6d5b5a9b871c86.tar.xz
Merging r195456:
------------------------------------------------------------------------ r195456 | dsanders | 2013-11-22 05:22:52 -0800 (Fri, 22 Nov 2013) | 4 lines Fix typo in a comment added in r195455. Credit to Matheus Almeida for spotting it. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/Mips/MipsSEISelLowering.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsSEISelLowering.cpp b/lib/Target/Mips/MipsSEISelLowering.cpp
index c02c235eb7..809adc03b1 100644
--- a/lib/Target/Mips/MipsSEISelLowering.cpp
+++ b/lib/Target/Mips/MipsSEISelLowering.cpp
@@ -2211,8 +2211,9 @@ SDValue MipsSETargetLowering::lowerBUILD_VECTOR(SDValue Op,
// If the value fits into a simm10 then we can use ldi.[bhwd]
// However, if it isn't an integer type we will have to bitcast from an
- // integer type first.
- if (ResTy.isInteger() && SplatValue.isSignedIntN(10))
+ // integer type first. Also, if there are any undefs, we must lower them
+ // to defined values first.
+ if (ResTy.isInteger() && !HasAnyUndefs && SplatValue.isSignedIntN(10))
return Op;
EVT ViaVecTy;