This is an archive of the discontinued LLVM Phabricator instance.

[LV] Collect dead induction truncates
ClosedPublic

Authored by dmgreen on Oct 6 2020, 12:20 AM.

Details

Summary

We currently collect the ICmp and Add from an induction variable, marking them as dead so that vplan values are not created for them. This extends that to include any single use trunk from the ICmp, which allows the Add to more readily be removed too.

This can help with costing vplan nodes, as the ICmp and Add are more reliably removed and are not double-counted.

Diff Detail

Event Timeline

dmgreen created this revision.Oct 6 2020, 12:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2020, 12:20 AM
dmgreen requested review of this revision.Oct 6 2020, 12:20 AM
fhahn accepted this revision.Oct 7 2020, 7:20 AM

LGTM, thanks

This revision is now accepted and ready to land.Oct 7 2020, 7:20 AM
This revision was automatically updated to reflect the committed changes.