This is an archive of the discontinued LLVM Phabricator instance.

[MachineOutliner] Count savings from outlining in bytes.
ClosedPublic

Authored by efriedma on May 15 2018, 6:21 PM.

Details

Summary

Counting the number of instructions is both unintuitive and inaccurate. On AArch64, this only affects the generated remarks and certain rare pseudo-instructions, but it will have a bigger impact on other targets.

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.May 15 2018, 6:21 PM
paquette accepted this revision.May 16 2018, 9:21 AM

You are entirely correct. LGTM.

This revision is now accepted and ready to land.May 16 2018, 9:21 AM
efriedma updated this revision to Diff 147155.May 16 2018, 12:37 PM

Forgot to run the x86 regression tests... x86 doesn't implement getInstSizeInBytes(), so the changes were completely broken. Now updated to do something sane, with some FIXMEs.

This revision was automatically updated to reflect the committed changes.