Fix an issue where restores could be inserted after a terminator instruction,
authorOwen Anderson <resistor@mac.com>
Thu, 29 Jan 2009 08:22:06 +0000 (08:22 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 29 Jan 2009 08:22:06 +0000 (08:22 +0000)
commitc0f3a0353c7bbde87d9430ba9e1f352dd38ff62e
tree691a720364e1b1efd2053b7543de8786e5a35ade
parent4bfc2097218e2386807336d3fc885905edbd7215
Fix an issue where restores could be inserted after a terminator instruction,
and an iterator invalidation issue.

FreeBench/pifft no longer miscompiles with these fixes!

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