[llvm] r319851 - [SelectionDAG] Don't promote mask when splitting mstore.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 15:08:28 PST 2017


Author: ctopper
Date: Tue Dec  5 15:08:28 2017
New Revision: 319851

URL: http://llvm.org/viewvc/llvm-project?rev=319851&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp?rev=319851&r1=319850&r2=319851&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp Tue Dec  5 15:08:28 2017
@@ -1885,9 +1885,6 @@ SDValue DAGTypeLegalizer::SplitVecOp_MST
   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 =




More information about the llvm-commits mailing list