[all-commits] [llvm/llvm-project] 328377: [GreedyRA ORE] Add Cost of spill locations into re...

serguei-katkov via All-commits all-commits at lists.llvm.org
Mon Apr 19 20:56:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 328377307ad2da961b3be0f2bbf1814a6f1f4ed3
      https://github.com/llvm/llvm-project/commit/328377307ad2da961b3be0f2bbf1814a6f1f4ed3
  Author: Serguei Katkov <serguei.katkov at azul.com>
  Date:   2021-04-20 (Tue, 20 Apr 2021)

  Changed paths:
    M llvm/lib/CodeGen/RegAllocGreedy.cpp
    M llvm/test/CodeGen/AArch64/arm64-spill-remarks-treshold-hotness.ll
    M llvm/test/CodeGen/AArch64/arm64-spill-remarks.ll
    M llvm/test/CodeGen/X86/statepoint-ra.ll

  Log Message:
  -----------
  [GreedyRA ORE] Add Cost of spill locations into remark

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.

Reviewers: reames, MatzeB, anemet, thegameg
Reviewed By: reames
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D100020




More information about the All-commits mailing list