[FastISel] Local values shouldn't be alive across an inline asm call with side effects.
authorJuergen Ributzka <juergen@apple.com>
Wed, 16 Jul 2014 22:20:51 +0000 (22:20 +0000)
committerJuergen Ributzka <juergen@apple.com>
Wed, 16 Jul 2014 22:20:51 +0000 (22:20 +0000)
commit22441c3a0dc92c5ca2eb5db6313c3af3824f88c7
tree7b78b43aeaba41952d772b141fddb3a3f7ad4660
parent04fc9aeda36f92e829a2a6028695fa97b48ba124
[FastISel] Local values shouldn't be alive across an inline asm call with side effects.

This fixes an issue where a local value is defined before and used after an
inline asm call with side effects.

This fix simply flushes the local value map, which updates the insertion point
for the inline asm call to be above any previously defined local values.

This fixes <rdar://problem/17694203>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213203 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/FastISel.cpp
test/CodeGen/ARM/fast-isel-inline-asm.ll [new file with mode: 0644]