[PATCH] Teach SplitBlockPredecessors how to handle landingpad blocks.

Igor Laevsky igor at azulsystems.com
Fri Jan 23 18:28:27 PST 2015


Hi reames,

Currently SplitBlockPredecessors generates incorrect code in case if basic block we are going to split has a landingpad. Also seems like it is fairly common case among it's users to conditionally call either SplitBlockPredecessors or SplitLandingPadPredecessors. Because of this I think it is reasonable to add this condition directly into SplitBlockPredecessors.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7157

Files:
  include/llvm/Transforms/Utils/BasicBlockUtils.h
  lib/Transforms/Scalar/LoopUnswitch.cpp
  lib/Transforms/Utils/BasicBlockUtils.cpp
  lib/Transforms/Utils/LoopSimplify.cpp
  lib/Transforms/Utils/LoopUnrollRuntime.cpp
  test/Transforms/LoopSimplify/2011-12-14-LandingpadHeader.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7157.18704.patch
Type: text/x-patch
Size: 8038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150124/f66a7eda/attachment.bin>


More information about the llvm-commits mailing list