This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Update LiveIntervals in TargetInstrInfo::convertToThreeAddress
ClosedPublic

Authored by foad on Nov 9 2021, 9:39 AM.

Details

Summary

Delegate updating of LiveIntervals to each target's
convertToThreeAddress implementation, instead of repairing LiveIntervals
after the fact in TwoAddressInstruction::convertInstTo3Addr.

Diff Detail

Event Timeline

foad created this revision.Nov 9 2021, 9:39 AM
foad requested review of this revision.Nov 9 2021, 9:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 9 2021, 9:39 AM
foad added a comment.Nov 9 2021, 9:40 AM

As suggested in D113123. I'm not sure what level of testing would be appropriate for a change like this. All I can say is that it doesn't make the codegen lit test results any worse, if I run them with -early-live-intervals forced on.

SystemZ changes LGTM - I guess we're always in the "SingleInst" case.

arsenm accepted this revision.Nov 16 2021, 6:15 AM
This revision is now accepted and ready to land.Nov 16 2021, 6:15 AM
This revision was landed with ongoing or failed builds.Nov 17 2021, 2:29 AM
This revision was automatically updated to reflect the committed changes.