diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-02-09 06:38:23 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-02-09 06:38:23 +0000 |
commit | 8d3cb829cea6082d7165a7b76a2ded7913634b01 (patch) | |
tree | d37950a8830fe966e6ebc318f8833998eed1bb5d /lldb/source/Utility/PseudoTerminal.cpp | |
parent | 1de3094d78700caf404928bf40dba1df972bb864 (diff) | |
download | bcm5719-llvm-8d3cb829cea6082d7165a7b76a2ded7913634b01.tar.gz bcm5719-llvm-8d3cb829cea6082d7165a7b76a2ded7913634b01.zip |
Fix a bug in DemoteRegToStack where a reload instruction was inserted into the
wrong basic block.
This would happen when the result of an invoke was used by a phi instruction
in the invoke's normal destination block. An instruction to reload the invoke's
value would get inserted before the critical edge was split and a new basic
block (which is the correct insertion point for the reload) was created. This
commit fixes the bug by splitting the critical edge before all the reload
instructions are inserted.
Also, hoist up the code which computes the insertion point to the only place
that need that computation.
rdar://problem/15978721
llvm-svn: 228566
Diffstat (limited to 'lldb/source/Utility/PseudoTerminal.cpp')
0 files changed, 0 insertions, 0 deletions