]> granicus.if.org Git - llvm/commit
[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)
commit508c39393a29d4524d113293bcab0a1c74a2328a
tree66bdd01922edcebf1d828c72cdb33a338039405d
parent34b45cdb95338b245abd20a3b0eeca923ef651eb
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220194 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Thumb1RegisterInfo.cpp
test/CodeGen/Thumb/large-stack.ll