[X86] combineX86ShufflesRecursively - pull out getTargetLoweringInfo call. NFC.

This commit is contained in:
Simon Pilgrim 2025-03-24 10:52:45 +00:00
parent 4398a222ad
commit df086650e1

View File

@ -40892,6 +40892,7 @@ static SDValue combineX86ShufflesRecursively(
MVT RootVT = Root.getSimpleValueType();
assert(RootVT.isVector() && "Shuffles operate on vector types!");
unsigned RootSizeInBits = RootVT.getSizeInBits();
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
// Bound the depth of our recursive combine because this is ultimately
// quadratic in nature.
@ -41250,9 +41251,8 @@ static SDValue combineX86ShufflesRecursively(
APInt OpScaledDemandedElts = APIntOps::ScaleBitMask(OpDemandedElts, NumOpElts);
// Can this operand be simplified any further, given it's demanded elements?
if (SDValue NewOp =
DAG.getTargetLoweringInfo().SimplifyMultipleUseDemandedVectorElts(
Op, OpScaledDemandedElts, DAG))
if (SDValue NewOp = TLI.SimplifyMultipleUseDemandedVectorElts(
Op, OpScaledDemandedElts, DAG))
Op = NewOp;
}
// FIXME: should we rerun resolveTargetShuffleInputsAndMask() now?