[llvm] [SelectionDAG] Fold undemanded operand to UNDEF for VECTOR_SHUFFLE (PR #145524)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 08:26:24 PDT 2025


================
@@ -3587,6 +3587,19 @@ bool TargetLowering::SimplifyDemandedVectorElts(
         DemandedRHS.setBit(M - NumElts);
     }
----------------
RKSimon wrote:

(side note) we have llvm::getShuffleDemandedElts to do this for us now

https://github.com/llvm/llvm-project/pull/145524


More information about the llvm-commits mailing list