[PATCH] D35816: [Greedy RegAlloc] Add logic to greedy reg alloc to avoid bad eviction chains

Marina Yatsina via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 16 07:42:02 PDT 2017


myatsina updated this revision to Diff 119158.
myatsina edited the summary of this revision.
myatsina added a comment.

As compile time was a concern, I've added a flag to control weather we do cost calculations for local intervals we expect to be created (it's on by default for X86 target, off for the rest).
I've fixed the tests and some comments.

Do you have additional comments?


Repository:
  rL LLVM

https://reviews.llvm.org/D35816

Files:
  include/llvm/CodeGen/CalcSpillWeights.h
  include/llvm/CodeGen/LiveIntervalAnalysis.h
  include/llvm/Target/TargetSubtargetInfo.h
  lib/CodeGen/CalcSpillWeights.cpp
  lib/CodeGen/LiveIntervalAnalysis.cpp
  lib/CodeGen/RegAllocGreedy.cpp
  lib/CodeGen/TargetSubtargetInfo.cpp
  lib/Target/X86/X86Subtarget.h
  test/CodeGen/X86/bug26810.ll
  test/CodeGen/X86/greedy_regalloc_bad_eviction_sequence.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35816.119158.patch
Type: text/x-patch
Size: 268349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171016/dcb9c174/attachment-0001.bin>


More information about the llvm-commits mailing list