summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-04-24 16:49:53 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-04-24 16:49:53 +0000
commitdd748b83aaf6868cbeda4e7e8500bd18d960a84c (patch)
tree02a86f8bbb60e1303a76227df65a01c2293facdb
parent7c25ef92a39ff602098d7de88dc16d821ca7bb7c (diff)
downloadbcm5719-llvm-dd748b83aaf6868cbeda4e7e8500bd18d960a84c.tar.gz
bcm5719-llvm-dd748b83aaf6868cbeda4e7e8500bd18d960a84c.zip
[X86][SSE] getTargetShuffleMaskIndices - dropped (unused) UNDEF handling
We aren't currently making use of this in any successful mask decode and its actually incorrect as it inserts the wrong number of SM_SentinelUndef mask elements. llvm-svn: 267350
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index addfde2f218..30168ba826c 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -4731,11 +4731,6 @@ static bool getTargetShuffleMaskIndices(SDValue MaskNode,
return false;
for (SDValue Op : MaskNode->ops()) {
- if (Op.isUndef()) {
- RawMask.push_back((uint64_t)SM_SentinelUndef);
- continue;
- }
-
if (auto *CN = dyn_cast<ConstantSDNode>(Op.getNode()))
SplitElementToMask(CN->getAPIntValue());
else if (auto *CFN = dyn_cast<ConstantFPSDNode>(Op.getNode()))
OpenPOWER on IntegriCloud