From: Simon Pilgrim Date: Sat, 3 Feb 2018 21:34:42 +0000 (+0000) Subject: [SelectionDAG] Don't use simple VT in generic shuffle code X-Git-Tag: android-x86-7.1-r4~5476 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a0143b72d90f0866ac402db0dfa140991b3066e8;p=android-x86%2Fexternal-llvm.git [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 --- 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);