-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[DAG] expandVECTOR_COMPRESS - remove superfluous getFreeze. NFC. #150062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
freeze(freeze(extract_vector_elt(x,i))) -> freeze(extract_vector_elt(x,i))
@llvm/pr-subscribers-llvm-selectiondag Author: Simon Pilgrim (RKSimon) Changesfreeze(freeze(extract_vector_elt(x,i))) -> freeze(extract_vector_elt(x,i)) Full diff: https://github.com/llvm/llvm-project/pull/150062.diff 1 Files Affected:
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index f2238efab68f6..1764910861df4 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -11994,8 +11994,7 @@ SDValue TargetLowering::expandVECTOR_COMPRESS(SDNode *Node,
// Get the mask value and add it to the current output position. This
// either increments by 1 if MaskI is true or adds 0 otherwise.
// Freeze in case we have poison/undef mask entries.
- SDValue MaskI =
- DAG.getFreeze(DAG.getExtractVectorElt(DL, MaskScalarVT, Mask, I));
+ SDValue MaskI = DAG.getExtractVectorElt(DL, MaskScalarVT, Mask, I);
MaskI = DAG.getFreeze(MaskI);
MaskI = DAG.getNode(ISD::TRUNCATE, DL, MVT::i1, MaskI);
MaskI = DAG.getNode(ISD::ZERO_EXTEND, DL, PositionVT, MaskI);
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/187/builds/8387 Here is the relevant piece of the build log for the reference
|
…m#150062) freeze(freeze(extract_vector_elt(x,i))) -> freeze(extract_vector_elt(x,i))
freeze(freeze(extract_vector_elt(x,i))) -> freeze(extract_vector_elt(x,i))