summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-03 21:34:42 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-03 21:34:42 +0000
commit4df6499f1056b03beea46c8660e1908373a4cbde (patch)
tree823229293d1504c48109b608bb416de7719933ba
parent8fb1dd8a1d4b40255dab28fd3ae8e1704bf5ff39 (diff)
downloadbcm5719-llvm-4df6499f1056b03beea46c8660e1908373a4cbde.tar.gz
bcm5719-llvm-4df6499f1056b03beea46c8660e1908373a4cbde.zip
[SelectionDAG] Don't use simple VT in generic shuffle code
Better to assume that any value type may be commuted, not just MVTs. No test case right now, but discovered while investigating possible shuffle combines. llvm-svn: 324179
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 4e5eab49c33..aaf962a18ff 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1644,7 +1644,7 @@ SDValue SelectionDAG::getVectorShuffle(EVT VT, const SDLoc &dl, SDValue N1,
}
SDValue SelectionDAG::getCommutedVectorShuffle(const ShuffleVectorSDNode &SV) {
- MVT VT = SV.getSimpleValueType(0);
+ EVT VT = SV.getValueType(0);
SmallVector<int, 8> MaskVec(SV.getMask().begin(), SV.getMask().end());
ShuffleVectorSDNode::commuteMask(MaskVec);
OpenPOWER on IntegriCloud