[PATCH] D100945: [GreedyRA] Fix removeBackCopies to account empty copies

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 21 04:46:58 PDT 2021


skatkov created this revision.
skatkov added reviewers: reames, MatzeB, rnk, wmi, qcolombet, void.
Herald added subscribers: pengfei, jfb, hiraditya.
skatkov requested review of this revision.
Herald added a project: LLVM.

RegAssignMap cannot hold empty interval, so do not set stop
to kill value if it produces empty interval.

This can happen if we remove back-copy and right before that we have another
back-copy.


https://reviews.llvm.org/D100945

Files:
  llvm/lib/CodeGen/SplitKit.cpp
  llvm/test/CodeGen/X86/statepoint-invoke-ra-remove-back-copies.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100945.339186.patch
Type: text/x-patch
Size: 45560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210421/b3697f85/attachment-0001.bin>


More information about the llvm-commits mailing list