OSDN Git Service

ARM SelectDYN_ALLOC should emit a copy from SP rather than referencing SP directly...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 15 Apr 2010 18:42:28 +0000 (18:42 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 15 Apr 2010 18:42:28 +0000 (18:42 +0000)
commit0ea7d219ec5bb45a0b3e96c01070cfc21227291d
tree9068c4cc40d336454060ac5133c002428b9ac971
parentc8866980fe551352a7f9180248f1faa198ddae4e
ARM SelectDYN_ALLOC should emit a copy from SP rather than referencing SP directly. In cases where there are two dyn_alloc in the same BB it would have caused the old SP value to be reused and badness ensues. rdar://7493908

llvm is generating poor code for dynamic alloca, I'll fix that later.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101383 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelDAGToDAG.cpp
test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll [new file with mode: 0644]