OSDN Git Service

[SelectionDAG] Don't promote mask when splitting mstore.
authorCraig Topper <craig.topper@intel.com>
Tue, 5 Dec 2017 23:08:28 +0000 (23:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 5 Dec 2017 23:08:28 +0000 (23:08 +0000)
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

lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

index 91d0469..0b0c9e1 100644 (file)
@@ -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 =