[llvm] [SelectionDAG] Fold undemanded operand to UNDEF for VECTOR_SHUFFLE (PR #145524)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 00:29:57 PDT 2025
================
@@ -3587,6 +3587,19 @@ bool TargetLowering::SimplifyDemandedVectorElts(
DemandedRHS.setBit(M - NumElts);
}
+ // If either side isn't demanded, replace it by UNDEF. We handle this
+ // explicitly here to also simplify in case of mulitple uses (on the
----------------
RKSimon wrote:
mulitple -> multiple
https://github.com/llvm/llvm-project/pull/145524
More information about the llvm-commits
mailing list