This is an archive of the discontinued LLVM Phabricator instance.

[MachineCombiner] Don't compute the latency of transient instructions
ClosedPublic

Authored by Carrot on Jul 12 2022, 6:40 PM.

Details

Summary

If an MI will not generate a target instruction, we should not compute its latency. Then we can compute more precise instruction sequence cost, and get better result.

Diff Detail

Event Timeline

Carrot created this revision.Jul 12 2022, 6:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2022, 6:40 PM
Carrot requested review of this revision.Jul 12 2022, 6:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2022, 6:40 PM
dmgreen accepted this revision.Jul 13 2022, 12:38 AM

Thanks. LGTM

This revision is now accepted and ready to land.Jul 13 2022, 12:38 AM
This revision was landed with ongoing or failed builds.Jul 14 2022, 10:09 AM
This revision was automatically updated to reflect the committed changes.