[LV] Use VPReplicateRecipe::isUniform instead isUniformAfterVec (NFCI).
In scalarizeInstruction(), isUniformAfterVectorization is used to detect cases where it is sufficient to always access the first lane. This should map directly checking whether the operand is a uniform replicate recipe. Differential Revision: https://reviews.llvm.org/D116654
This commit is contained in:
parent
7275de7fb2
commit
541ca12dcd
@ -2945,7 +2945,8 @@ void InnerLoopVectorizer::scalarizeInstruction(Instruction *Instr,
|
||||
for (auto &I : enumerate(RepRecipe->operands())) {
|
||||
auto InputInstance = Instance;
|
||||
VPValue *Operand = I.value();
|
||||
if (State.Plan->isUniformAfterVectorization(Operand))
|
||||
VPReplicateRecipe *OperandR = dyn_cast<VPReplicateRecipe>(Operand);
|
||||
if (OperandR && OperandR->isUniform())
|
||||
InputInstance.Lane = VPLane::getFirstLane();
|
||||
Cloned->setOperand(I.index(), State.get(Operand, InputInstance));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user