We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b984fd commit 1331f17Copy full SHA for 1331f17
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -3379,7 +3379,7 @@ void VPWidenPointerInductionRecipe::execute(VPTransformState &State) {
3379
assert(getInductionDescriptor().getKind() ==
3380
InductionDescriptor::IK_PtrInduction &&
3381
"Not a pointer induction according to InductionDescriptor!");
3382
- assert(cast<PHINode>(getUnderlyingInstr())->getType()->isPointerTy() &&
+ assert(State.TypeAnalysis.inferScalarType(this)->isPointerTy() &&
3383
"Unexpected type.");
3384
assert(!onlyScalarsGenerated(State.VF.isScalable()) &&
3385
"Recipe should have been replaced");
0 commit comments