This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Mark LEApcrel instructions as isAsCheapAsAMove
ClosedPublic

Authored by john.brawn on May 4 2017, 4:14 AM.

Details

Summary

Doing this means that if an LEApcrel is used in two places we will rematerialize instead of generating two MOVs. This is particularly useful for printfs using the same format string, where we want to generate an address into a register that's going to get corrupted by the call.

Diff Detail

Event Timeline

john.brawn created this revision.May 4 2017, 4:14 AM
jmolloy accepted this revision.May 15 2017, 3:59 AM

LGTM

This revision is now accepted and ready to land.May 15 2017, 3:59 AM
This revision was automatically updated to reflect the committed changes.