From: Craig Topper Date: Tue, 5 Dec 2017 23:08:28 +0000 (+0000) Subject: [SelectionDAG] Don't promote mask when splitting mstore. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d013255515421a00ed7190e68be3fc1ca3b1d94;p=llvm [SelectionDAG] Don't promote mask when splitting mstore. If the mask needs to be promoted it should be handled by operand promotion after the result is legalized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319851 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index 91d0469cf2c..0b0c9e1e5a5 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -1885,9 +1885,6 @@ SDValue DAGTypeLegalizer::SplitVecOp_MSTORE(MaskedStoreSDNode *N, else std::tie(MaskLo, MaskHi) = DAG.SplitVector(Mask, DL); - MaskLo = PromoteTargetBoolean(MaskLo, DataLo.getValueType()); - MaskHi = PromoteTargetBoolean(MaskHi, DataHi.getValueType()); - // if Alignment is equal to the vector size, // take the half of it for the second part unsigned SecondHalfAlignment =