summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-07-06 18:09:08 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-07-06 18:09:08 +0000
commit8ff71575138f08a344067f29f992eb0126422a88 (patch)
tree17e30748e0b6345cb5ac2fa01f2739eb460ebf84 /llvm
parent8848a7a6b253b9bba64283d4d754c2b52138c48a (diff)
downloadbcm5719-llvm-8ff71575138f08a344067f29f992eb0126422a88.tar.gz
bcm5719-llvm-8ff71575138f08a344067f29f992eb0126422a88.zip
[X86][SSE] Fixed typo in insertps lowering.
We were checking for 2 insertions (which is caught earlier in the pattern matching loop) instead of the case where we have no insertions. Turns out this code never fires as we always try to lower to insertps after trying to lower to blendps, which would catch these cases - I'm about to make some changes to support combining to insertps which could cause this to fire so I don't want to remove it. llvm-svn: 274648
Diffstat (limited to 'llvm')
-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