[VPlan] Replace getUnderlyingInstr() with type inference (NFC)
Remove an unnecessary use of getUnderlyingInstr().
This commit is contained in:
parent
2b984fd0e3
commit
1331f17184
@ -3379,7 +3379,7 @@ void VPWidenPointerInductionRecipe::execute(VPTransformState &State) {
|
||||
assert(getInductionDescriptor().getKind() ==
|
||||
InductionDescriptor::IK_PtrInduction &&
|
||||
"Not a pointer induction according to InductionDescriptor!");
|
||||
assert(cast<PHINode>(getUnderlyingInstr())->getType()->isPointerTy() &&
|
||||
assert(State.TypeAnalysis.inferScalarType(this)->isPointerTy() &&
|
||||
"Unexpected type.");
|
||||
assert(!onlyScalarsGenerated(State.VF.isScalable()) &&
|
||||
"Recipe should have been replaced");
|
||||
|
Loading…
x
Reference in New Issue
Block a user