diff options
author | Guozhi Wei <carrot@google.com> | 2021-10-11 15:28:31 -0700 |
---|---|---|
committer | Guozhi Wei <carrot@google.com> | 2021-10-11 15:28:31 -0700 |
commit | 6599961c17073204ac868958e632cf4d92353cbe (patch) | |
tree | 21817e7913ca9e14e5aba6b451d9b9c541f78f0c /llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp | |
parent | c3dcf39554dbea780d6cb7e12239451ba47a2668 (diff) | |
download | llvm-6599961c17073204ac868958e632cf4d92353cbe.zip llvm-6599961c17073204ac868958e632cf4d92353cbe.tar.gz llvm-6599961c17073204ac868958e632cf4d92353cbe.tar.bz2 |
[TwoAddressInstructionPass] Improve the SrcRegMap and DstRegMap computation
This patch contains following enhancements to SrcRegMap and DstRegMap:
1 In findOnlyInterestingUse not only check if the Reg is two address usage,
but also check after commutation can it be two address usage.
2 If a physical register is clobbered, remove SrcRegMap entries that are
mapped to it.
3 In processTiedPairs, when create a new COPY instruction, add a SrcRegMap
entry only when the COPY instruction is coalescable. (The COPY src is
killed)
With these enhancements isProfitableToCommute can do better commute decision,
and finally more register copies are removed.
Differential Revision: https://reviews.llvm.org/D108731
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp')
0 files changed, 0 insertions, 0 deletions