[PATCH] D48102: Improve handling of COPY instructions with identical value numbers

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 19 15:06:16 PDT 2018


kparzysz updated this revision to Diff 151982.
kparzysz added a comment.

Fix the "cannot join subranges" issue caused by redefining an undef value (more details in comments), roughly something like this:

  %0 <- undef
  %1 = COPY %0
  %0 = COPY %1  <- now %0 is "def", even though it's identical to what it was before (i.e. "undef").


Repository:
  rL LLVM

https://reviews.llvm.org/D48102

Files:
  lib/CodeGen/RegisterCoalescer.cpp
  test/CodeGen/AMDGPU/coalescer-extend-pruned-subrange.mir
  test/CodeGen/AMDGPU/coalescer-identical-values-undef.mir
  test/CodeGen/AMDGPU/coalescing-with-subregs-in-loop-bug.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48102.151982.patch
Type: text/x-patch
Size: 19605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180619/fc9f6953/attachment.bin>


More information about the llvm-commits mailing list