We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995fd47 commit 4fa3b2aCopy full SHA for 4fa3b2a
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -2642,7 +2642,7 @@ void VPPredInstPHIRecipe::execute(VPTransformState &State) {
2642
if (vputils::onlyFirstLaneUsed(this) && !State.Lane->isFirstLane())
2643
return;
2644
2645
- Type *PredInstType = getOperand(0)->getUnderlyingValue()->getType();
+ Type *PredInstType = State.TypeAnalysis.inferScalarType(getOperand(0));
2646
PHINode *Phi = State.Builder.CreatePHI(PredInstType, 2);
2647
Phi->addIncoming(PoisonValue::get(ScalarPredInst->getType()),
2648
PredicatingBB);
0 commit comments