Turn off critical edge splitting for landing pads. The introduction of a
authorBill Wendling <isanbard@gmail.com>
Thu, 17 Dec 2009 23:42:32 +0000 (23:42 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 17 Dec 2009 23:42:32 +0000 (23:42 +0000)
commit3de8249078354d25b37b40e0f10b4f88226d3dd4
tree788b5f0e3b4fefa0fe20c47902cb51228c8c7127
parent08ce53996e944927699dd6e98839deb9d9d4c092
Turn off critical edge splitting for landing pads. The introduction of a
non-landing pad basic block as the successor to a block that ends in an
unconditional jump will cause block folding to remove the added block as a
successor. Thus eventually removing it AND the landing pad entirely. Critical
edge splitting is an optimization, so we can safely turn it off when dealing
with landing pads.

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