[Thumb] Fix crash in Thumb1RegisterInfo::rewriteFrameIndex
authorOliver Stannard <oliver.stannard@arm.com>
Mon, 20 Oct 2014 11:00:18 +0000 (11:00 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Mon, 20 Oct 2014 11:00:18 +0000 (11:00 +0000)
commitfce039240a4984a0f10b19126fd9a883ec092447
tree34612e30f1412d006f8d27e6bdcc88142321fc5b
parentf67321cb26010c9450fe385d4e1031b8523c148d
[Thumb] Fix crash in Thumb1RegisterInfo::rewriteFrameIndex

This function can, for some offsets from the SP, split one instruction
into two. Since it re-uses the original instruction as the first
instruction of the result, we need ensure its result register is not
marked as dead before we use it in the second instruction.

llvm-svn: 220194
llvm/lib/Target/ARM/Thumb1RegisterInfo.cpp
llvm/test/CodeGen/Thumb/large-stack.ll