This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add isAsCheapAsAMove to FLI instructions.
ClosedPublic

Authored by craig.topper on Mar 17 2023, 11:04 AM.

Details

Summary

This can prevent unnecessarily hoisting out of loops.

Test case cribbed from AArch64.

I also intend to make them rematerializable.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 17 2023, 11:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2023, 11:04 AM
craig.topper requested review of this revision.Mar 17 2023, 11:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2023, 11:04 AM
reames accepted this revision.Mar 17 2023, 11:57 AM

LGTM

This revision is now accepted and ready to land.Mar 17 2023, 11:57 AM
This revision was landed with ongoing or failed builds.Mar 17 2023, 12:16 PM
This revision was automatically updated to reflect the committed changes.