Handle REG_SEQUENCE with implicitly defined operands.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 28 Jul 2011 21:38:51 +0000 (21:38 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 28 Jul 2011 21:38:51 +0000 (21:38 +0000)
commitf6c690019b7ba9d121e658d16b9d99831df7428f
tree9a2fa1cfed5dbbd1f600c3e2518dc7d6381f343f
parent43afb6ff1cf7b040e2d70abb47679e1357a329d5
Handle REG_SEQUENCE with implicitly defined operands.

Code like that would only be produced by bugpoint, but we should still
handle it correctly.

When a register is defined by a REG_SEQUENCE of undefs, the register
itself is undef. Previously, we would create a register with uses but no
defs.

Fixes part of PR10520.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136401 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ProcessImplicitDefs.cpp
test/CodeGen/ARM/crash.ll