Skip to content

Commit c710d46

Browse files
authored
[DAG] expandVECTOR_COMPRESS - remove superfluous getFreeze. NFC. (#150062)
freeze(freeze(extract_vector_elt(x,i))) -> freeze(extract_vector_elt(x,i))
1 parent 9a7a6b2 commit c710d46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11994,8 +11994,7 @@ SDValue TargetLowering::expandVECTOR_COMPRESS(SDNode *Node,
1199411994
// Get the mask value and add it to the current output position. This
1199511995
// either increments by 1 if MaskI is true or adds 0 otherwise.
1199611996
// Freeze in case we have poison/undef mask entries.
11997-
SDValue MaskI =
11998-
DAG.getFreeze(DAG.getExtractVectorElt(DL, MaskScalarVT, Mask, I));
11997+
SDValue MaskI = DAG.getExtractVectorElt(DL, MaskScalarVT, Mask, I);
1199911998
MaskI = DAG.getFreeze(MaskI);
1200011999
MaskI = DAG.getNode(ISD::TRUNCATE, DL, MVT::i1, MaskI);
1200112000
MaskI = DAG.getNode(ISD::ZERO_EXTEND, DL, PositionVT, MaskI);

0 commit comments

Comments
 (0)