mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 18:36:35 +00:00
[VPlan] Use TypeAnalysis instead of underlying instr in VPPredInst (NFC)
Removes another unnecessary use of the underlying instructions during VPlan execution.
This commit is contained in:
parent
995fd47944
commit
4fa3b2a184
@ -2642,7 +2642,7 @@ void VPPredInstPHIRecipe::execute(VPTransformState &State) {
|
|||||||
if (vputils::onlyFirstLaneUsed(this) && !State.Lane->isFirstLane())
|
if (vputils::onlyFirstLaneUsed(this) && !State.Lane->isFirstLane())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Type *PredInstType = getOperand(0)->getUnderlyingValue()->getType();
|
Type *PredInstType = State.TypeAnalysis.inferScalarType(getOperand(0));
|
||||||
PHINode *Phi = State.Builder.CreatePHI(PredInstType, 2);
|
PHINode *Phi = State.Builder.CreatePHI(PredInstType, 2);
|
||||||
Phi->addIncoming(PoisonValue::get(ScalarPredInst->getType()),
|
Phi->addIncoming(PoisonValue::get(ScalarPredInst->getType()),
|
||||||
PredicatingBB);
|
PredicatingBB);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user