mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 01:16:06 +00:00
[X86] combineX86ShufflesRecursively - pull out getTargetLoweringInfo call. NFC.
This commit is contained in:
parent
4398a222ad
commit
df086650e1
@ -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?
|
||||
|
Loading…
x
Reference in New Issue
Block a user