Fix PR5410: LiveVariables lost subreg def:
authorEvan Cheng <evan.cheng@apple.com>
Fri, 13 Nov 2009 20:36:40 +0000 (20:36 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 13 Nov 2009 20:36:40 +0000 (20:36 +0000)
commit236490d870c2734203ecf26c8f104d0b3283e69e
tree00bf78eb477e60ecd8329301b3cf7d57200bf238
parent87d21b92fc42f6b3bd8567a83fc5b5191c1205e5
Fix PR5410: LiveVariables lost subreg def:

D0<def,dead> = ...
...
             = S0<use, kill>
S0<def>      = ...
...
D0<def>      =

The first D0 def is correctly marked dead, however, livevariables should have
added an implicit def of S0 or we end up with a use without a def.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88690 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveVariables.cpp
test/CodeGen/ARM/2009-11-13-CoalescerCrash.ll [new file with mode: 0644]