[llvm-commits] [llvm] r132535 - in /llvm/trunk: lib/Transforms/Scalar/LoopUnswitch.cpp test/Transforms/LoopUnswitch/2011-06-02-CritSwitch.ll

Dan Gohman gohman at apple.com
Fri Jun 3 13:05:52 PDT 2011


On Jun 2, 2011, at 11:27 PM, Nick Lewycky wrote:

> Author: nicholas
> Date: Fri Jun  3 01:27:15 2011
> New Revision: 132535
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=132535&view=rev
> Log:
> Bail on unswitching a switch statement for a case with a critical edge. We name
> which edge to split by pred/succ pair, which means that we can end up splitting
> the wrong edge (by case value) in the switch statement entirely. Fixes PR10031!

Can this come up with branches instead of switches too? Branches where both
arms go to the same destination are rare but possible.

Dan




More information about the llvm-commits mailing list