[llvm] [DAGCombine] Freeze after load is scalarized. (PR #212587)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 07:01:00 PDT 2026
================
@@ -25926,6 +25926,12 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
if (!LegalOperations || !IndexC)
return SDValue();
+ bool IsFrozen = false;
+ if (VecOp.getOpcode() == ISD::FREEZE && VecOp.hasOneUse()) {
----------------
arsenm wrote:
I'm not sure why this needs the multiple use check
https://github.com/llvm/llvm-project/pull/212587
More information about the llvm-commits
mailing list