]> granicus.if.org Git - llvm/commit
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)
commitc6f33b7e68d0dba8f207a3b2da70aca3cc8d3514
tree30dfc155782f1cd8b96564383ac65bcffac3ae2a
parente5313997b56e0a9e60814b4703c8ede9c1fa56f9
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303396 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterCoalescer.cpp
test/CodeGen/AMDGPU/regcoalesce-prune.mir [new file with mode: 0644]