This is an archive of the discontinued LLVM Phabricator instance.

[LV] Add setStartValue to VPWidenIntOrFPInductionRecipe
AbandonedPublic

Authored by michaelmaitland on Feb 15 2023, 10:30 AM.

Details

Summary

VPWidenIntOrFPInductionRecipe is casted to VPHeaderPHIRecipe even
though it is not a VPHeaderPHIRecipe. Then setStartValue is called
on the VPWidenIntOrFPInductionRecipe which was casted to a class
that it does not inherit from. This bug was not caught because
VPHeaderPHIRecipe::setStartValue has the same body that *should*
have existed in VPWidenIntOrFPInductionRecipe. This patch
casts to the correct Recipe type and calls the correct
setStartValue function.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptFeb 15 2023, 10:30 AM
michaelmaitland requested review of this revision.Feb 15 2023, 10:30 AM