[LLVMdev] [LLVM] LoopUnswitch + SwitchInst

Eli Friedman eli.friedman at gmail.com
Thu Nov 3 09:55:04 PDT 2011


On Thu, Nov 3, 2011 at 4:33 AM, Stepan Dyatkovskiy <stpworld at narod.ru> wrote:
> 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?

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

-Eli



More information about the llvm-dev mailing list