Skip to content

Commit df08665

Browse files
committed
[X86] combineX86ShufflesRecursively - pull out getTargetLoweringInfo call. NFC.
1 parent 4398a22 commit df08665

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40892,6 +40892,7 @@ static SDValue combineX86ShufflesRecursively(
4089240892
MVT RootVT = Root.getSimpleValueType();
4089340893
assert(RootVT.isVector() && "Shuffles operate on vector types!");
4089440894
unsigned RootSizeInBits = RootVT.getSizeInBits();
40895+
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
4089540896

4089640897
// Bound the depth of our recursive combine because this is ultimately
4089740898
// quadratic in nature.
@@ -41250,9 +41251,8 @@ static SDValue combineX86ShufflesRecursively(
4125041251
APInt OpScaledDemandedElts = APIntOps::ScaleBitMask(OpDemandedElts, NumOpElts);
4125141252

4125241253
// Can this operand be simplified any further, given it's demanded elements?
41253-
if (SDValue NewOp =
41254-
DAG.getTargetLoweringInfo().SimplifyMultipleUseDemandedVectorElts(
41255-
Op, OpScaledDemandedElts, DAG))
41254+
if (SDValue NewOp = TLI.SimplifyMultipleUseDemandedVectorElts(
41255+
Op, OpScaledDemandedElts, DAG))
4125641256
Op = NewOp;
4125741257
}
4125841258
// FIXME: should we rerun resolveTargetShuffleInputsAndMask() now?

0 commit comments

Comments
 (0)