[llvm-commits] [llvm] r143001 - /llvm/trunk/lib/CodeGen/BranchFolding.cpp

Duncan Sands baldrick at free.fr
Wed Oct 26 00:38:46 PDT 2011


Hi Bill,

> Reapply r142920 with fix:
>
> An MBB which branches to an EH landing pad shouldn't be considered for tail merging.
>
> In SjLj EH, the jump to the landing pad is not done explicitly through a branch
> statement. The EH landing pad is added as a successor to the throwing
> BB. Because of that however, the branch folding pass could mistakenly think that
> it could merge the throwing BB with another BB. This isn't safe to do.
> <rdar://problem/10334833>

testcase?

Ciao, Duncan.



More information about the llvm-commits mailing list