[llvm] [SDAG][X86] Support shrinking target-independent nodes (PR #206721)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 06:49:05 PDT 2026
================
@@ -3825,6 +3825,27 @@ bool TargetLowering::SimplifyDemandedVectorElts(
if (!DemandedElts.isAllOnes())
if (SimplifyDemandedVectorEltsBinOp(Op0, Op1))
return true;
+
+ if (unsigned ShrunkSize = getPreferredShrunkVectorSize(Op, DemandedElts)) {
----------------
RKSimon wrote:
Probably worth hoisting this as a helper like SimplifyDemandedVectorEltsBinOp as I expect other ops would benefit soon.
https://github.com/llvm/llvm-project/pull/206721
More information about the llvm-commits
mailing list