[PATCH] D26687: RegisterCoalscer: Only coalesce complete reserved registers.

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 15 11:49:12 PST 2016


MatzeB created this revision.
MatzeB added a reviewer: qcolombet.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Herald added a subscriber: mcrosier.

The coalescer eliminates copies from reserved registers of the form:

  %vregX = COPY %rY

when %rY is a reserved physreg. However this transformation may be invalid if %rY has non-reserved subregister for which we will miss liveness information. Be conservative in this case and do not coalesce.

The test requires https://reviews.llvm.org/D26648 to work.


Repository:
  rL LLVM

https://reviews.llvm.org/D26687

Files:
  lib/CodeGen/RegisterCoalescer.cpp
  test/CodeGen/AArch64/regcoal-constreg.mir
  test/CodeGen/AArch64/regcoal-physreg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26687.78046.patch
Type: text/x-patch
Size: 4154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161115/69189259/attachment.bin>


More information about the llvm-commits mailing list