[PATCH] D100020: [GreedyRA ORE] Add Cost of spill locations into remark

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 6 22:53:25 PDT 2021


skatkov created this revision.
skatkov added reviewers: reames, MatzeB, anemet, thegameg.
Herald added subscribers: dantrushin, hiraditya, qcolombet.
skatkov requested review of this revision.
Herald added a project: LLVM.

Cost of spill location is computed basing on relative branch frequency where corresponding spill/reload/copy is located.

While the number itself is highly depends on incoming IR, the total cost can be used when do some changes in RA.


https://reviews.llvm.org/D100020

Files:
  llvm/lib/CodeGen/RegAllocGreedy.cpp
  llvm/test/CodeGen/AArch64/arm64-spill-remarks-treshold-hotness.ll
  llvm/test/CodeGen/AArch64/arm64-spill-remarks.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100020.335726.patch
Type: text/x-patch
Size: 5739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210407/117cde61/attachment.bin>


More information about the llvm-commits mailing list