[llvm-commits] [llvm] r154987 - /llvm/trunk/lib/Transforms/Scalar/LoopUnswitch.cpp

Duncan Sands baldrick at free.fr
Wed Apr 18 01:13:05 PDT 2012


Hi Bill,

> Use a heavy hammer to fix PR12573.
>
> If the loop contains invoke instructions, whose unwind edge escapes the loop,
> then don't try to unswitch the loop. Doing so may cause the unwind edge to be
> split, which not only is non-trivial but doesn't preserve loop simplify
> information.

testcase?  By the way, this disables loop unswitching for any loop that is
wrapped in a try-catch block - is that right?  If so, isn't that kind of
bad?  The hammer does seem extra heavy to me :)

Ciao, Duncan.



More information about the llvm-commits mailing list