[PATCH] D54367: RegAllocFast: Improve hinting heuristic
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 9 16:36:36 PST 2018
MatzeB created this revision.
MatzeB added reviewers: qcolombet, wmi, kparzysz, myatsina, javed.absar, arsenm.
Herald added subscribers: wdng, mcrosier.
- Trace through multiple COPYs when looking for a physreg source.
- Add hinting for vregs that will be copied into physregs (we only hinted for vregs getting copied to a physreg previously).
- Give hinted a register a bonus when deciding which value to spill.
This is part of my rewrite regallocfast series. In fact this one doesn't even have an effect unless you also flip the allocation to happen from back to front of a basic block. Nonetheless it helps to split this up to ease review of https://reviews.llvm.org/D52010
Repository:
rL LLVM
https://reviews.llvm.org/D54367
Files:
lib/CodeGen/RegAllocFast.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54367.173472.patch
Type: text/x-patch
Size: 4444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181110/7a73260d/attachment.bin>
More information about the llvm-commits
mailing list