OSDN Git Service

RegisterCoalescer: Cleanup empty subranges after shrinkToUses()
authorMatthias Braun <matze@braunis.de>
Tue, 30 Jun 2015 00:33:44 +0000 (00:33 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 30 Jun 2015 00:33:44 +0000 (00:33 +0000)
commit1a5b04c7250ea502e307076cf99bd2514e1d5fd0
tree781166dcf982245944b5672eb852a0647a0caf3a
parent7ce02c1c9665d4f8a0a3a5c8490391e8daad7fa7
RegisterCoalescer: Cleanup empty subranges after shrinkToUses()

A call to removeEmptySubranges() is necessary after every operation that
potentially removes all segments from a subregister range; this case in
the register coalescer was missing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241027 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/AMDGPU/subreg-coalescer-undef-use.ll [new file with mode: 0644]