Fix a register scavenger crash when dealing with undefined subregs.
authorBob Wilson <bob.wilson@apple.com>
Tue, 29 Jun 2010 18:42:49 +0000 (18:42 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 29 Jun 2010 18:42:49 +0000 (18:42 +0000)
commit5d52165e4e2f83e6e66063382f323435da21090d
treec1fd105df073a0f934535e1d7e89d872b0a8c0c1
parent721ef73d88414b7cfab1f1424db7101ff727ea81
Fix a register scavenger crash when dealing with undefined subregs.
The LowerSubregs pass needs to preserve implicit def operands attached to
EXTRACT_SUBREG instructions when it replaces those instructions with copies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107189 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LowerSubregs.cpp
test/CodeGen/ARM/2010-06-29-SubregImpDefs.ll [new file with mode: 0644]