LiveIntervalAnalysis: Fix missing case in pruneSubRegValues()
authorMatthias Braun <matze@braunis.de>
Fri, 19 May 2017 00:18:03 +0000 (00:18 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 19 May 2017 00:18:03 +0000 (00:18 +0000)
commitd6e75ed93ed39e29a6a7e9241ea6cc6171808ae7
tree23f58e1a2dd3cf68da84367f651ae2b64d7fa738
parent8700684aaa5ca4fccffb6481ccf3f4f655587892
LiveIntervalAnalysis: Fix missing case in pruneSubRegValues()

pruneSubRegValues() needs to remove subregister ranges starting at
instructions that later get removed by eraseInstrs(). It missed to check
one case in which eraseInstrs() would remove an instruction.

Fixes http://llvm.org/PR32688

llvm-svn: 303396
llvm/lib/CodeGen/RegisterCoalescer.cpp
llvm/test/CodeGen/AMDGPU/regcoalesce-prune.mir [new file with mode: 0644]