mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-13 08:46:22 +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())
|
||||
return;
|
||||
|
||||
Type *PredInstType = getOperand(0)->getUnderlyingValue()->getType();
|
||||
Type *PredInstType = State.TypeAnalysis.inferScalarType(getOperand(0));
|
||||
PHINode *Phi = State.Builder.CreatePHI(PredInstType, 2);
|
||||
Phi->addIncoming(PoisonValue::get(ScalarPredInst->getType()),
|
||||
PredicatingBB);
|
||||
|
Loading…
x
Reference in New Issue
Block a user