[LLVM] LoopUnswitch + SwitchInst

Hi all.

By now loops with switch instruction are unswitched value-by-value. For example for case range [0..9] we need to run unswitch process 10 times! I want try to optimize that case. Is there any hidden problems that blocks this improvement?

Regards,
Stepan.

Not as far as I know. LoopUnswitch is generally be a bit tricky to
work with, though.

-Eli