From a0143b72d90f0866ac402db0dfa140991b3066e8 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 3 Feb 2018 21:34:42 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324179 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 4e5eab49c33..aaf962a18ff 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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 MaskVec(SV.getMask().begin(), SV.getMask().end()); ShuffleVectorSDNode::commuteMask(MaskVec); -- 2.11.0