Re-land [GreedyRA ORE] Add Cost of spill locations into remark
authorSerguei Katkov <serguei.katkov@azul.com>
Tue, 20 Apr 2021 05:59:44 +0000 (12:59 +0700)
committerSerguei Katkov <serguei.katkov@azul.com>
Tue, 20 Apr 2021 09:21:07 +0000 (16:21 +0700)
commit70193bdfc06fe85114f1dcea463991dbd0c7b630
tree19877ef6f0dae5125c46a1383ca5932100246c1a
parentb4a358a7ba0f273b8c8a4a0e63801872a1bbfd4c
Re-land [GreedyRA ORE] Add Cost of spill locations into remark

Re-land the patch with a fix of clang test.

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

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

Revert "Revert "[GreedyRA ORE] Add Cost of spill locations into remark""
This reverts commit 680f3d6de79f7dd75ee0cda256a541d18e504a22.
clang/test/CodeGen/opt-record-MIR.c
llvm/lib/CodeGen/RegAllocGreedy.cpp
llvm/test/CodeGen/AArch64/arm64-spill-remarks-treshold-hotness.ll
llvm/test/CodeGen/AArch64/arm64-spill-remarks.ll
llvm/test/CodeGen/X86/statepoint-ra.ll