summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86ISelLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index ddfb8fa96bb..a98d6954445 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -8719,7 +8719,7 @@ static SDValue lowerVectorShuffleAsInsertPS(const SDLoc &DL,
}
// Don't bother if we have no (non-zeroable) element for insertion.
- if (V1DstIndex >= 0 && V2DstIndex >= 0)
+ if (V1DstIndex < 0 && V2DstIndex < 0)
return SDValue();
// Determine element insertion src/dst indices. The src index is from the
OpenPOWER on IntegriCloud