Custom inserters (e.g., conditional moves in Thumb1 can introduce
authorJim Grosbach <grosbach@apple.com>
Fri, 2 Jul 2010 21:23:37 +0000 (21:23 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 2 Jul 2010 21:23:37 +0000 (21:23 +0000)
commit6627ac040a14f3a79564fd6ec030f9361f81d20e
tree950f0f7cbe8a42193eefc55f9c32d2c65cc65d20
parent1192d4d0a5ed82bef4a5b33b7196f4e06895248f
Custom inserters (e.g., conditional moves in Thumb1 can introduce
new basic blocks, and if used as a function argument, that can cause call frame
setup / destroy pairs to be split across a basic block boundary. That prevents
us from doing a simple assertion to check that the pairs match and alloc/
dealloc the same amount of space. Modify the assertion to only check the
amount allocated when there are matching pairs in the same basic block.

rdar://8022442

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107517 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PrologEpilogInserter.cpp