[PATCH] D78248: [RegisterCoalescer] Extend a subrange if needed when filling range gap

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 15:27:55 PDT 2020


kparzysz created this revision.
kparzysz added reviewers: qcolombet, arsenm.
Herald added subscribers: tpr, hiraditya, wdng, MatzeB.
Herald added a project: LLVM.

Register live ranges may have had gaps that after coalescing should be removed. This is done by adding a new segment to the range, and merging it with neighboring segments. When doing so, do not assume that each subrange of the register ended at the same index. If a subrange ended earlier, adding this segment could make the live range invalid. Instead, if the subrange is not live at the start of the segment, extend it first.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78248

Files:
  llvm/lib/CodeGen/RegisterCoalescer.cpp
  llvm/test/CodeGen/Hexagon/regalloc-coal-extend-short-subrange.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78248.257868.patch
Type: text/x-patch
Size: 3698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200415/098c3ba1/attachment.bin>


More information about the llvm-commits mailing list