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.
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
Apparently Analagous Threads
- [LLVMdev] make check-lit + grep escape characters
- [LLVMdev] How to force the creation of arrays with zeroes?
- [LLVMdev] why LoopUnswitch pass does not constant fold conditional branch and merge blocks
- [LLVMdev] make check-lit + grep escape characters
- [LLVMdev] [LLVM, loop-unswitch tests] preserve-analyses.ll, strange PHI instruction.