Improve sub-register def handling in ProcessImplicitDefs.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 25 Jan 2012 23:36:27 +0000 (23:36 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 25 Jan 2012 23:36:27 +0000 (23:36 +0000)
commite8838d5c5f6cae7daa2507a114c896dc5a4ae097
treefa952f65182d44530fc680c26531d2ff28827668
parent4a99f59aef358fb93eac180e49f6dcef03822046
Improve sub-register def handling in ProcessImplicitDefs.

This boils down to using MachineOperand::readsReg() more.

This fixes PR11829 where a use ended up after the first def when
lowering REG_SEQUENCE instructions involving IMPLICIT_DEFs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148996 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ProcessImplicitDefs.cpp
test/CodeGen/ARM/2012-01-24-RegSequenceLiveRange.ll