With this change, the MachineSink will try to find cheap instructions (isAsCheapAsMove), such
that their destination register is used only by a tree of COPY instructions, with leaf nodes
being copies into a hard register. Then the pass will replace the final COPY instructions
with a copies of the original (non-COPY) instruction, and delete it, as long as the
register pressure at the destination would not exceed the limit.
Details
Details
- Reviewers
fhahn efriedma t.p.northover labrinea
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Update:
- don't sink instructions with non-register operands which could affect register pressure
- when checking register pressure use the source of the replaced copy instruction (not the destination of the instructions being sunk)