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)
commitbd23647379440b0c0edd2d6e694934c71f7002f9
tree2c1900656bae72de2c449dea02336c5e33dde997
parenta7ad09d0be070fc8e1e7a8dbf9f96d234e12fbf6
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.

llvm-svn: 241027
llvm/lib/CodeGen/RegisterCoalescer.cpp
llvm/test/CodeGen/AMDGPU/subreg-coalescer-undef-use.ll [new file with mode: 0644]