]> granicus.if.org Git - llvm/commitdiff
Merging r195456:
authorBill Wendling <isanbard@gmail.com>
Tue, 26 Nov 2013 11:17:43 +0000 (11:17 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 26 Nov 2013 11:17:43 +0000 (11:17 +0000)
------------------------------------------------------------------------
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

lib/Target/Mips/MipsSEISelLowering.cpp

index c02c235eb7dc697c9c86f86ac08c2738c04b38a6..809adc03b15153e0a311ec8696e87ec8c69f5a82 100644 (file)
@@ -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;