<div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>As noted in PR39043, LLVM is unable to optimize a code containing finite state automata implemented using while + switch.</div><div><br></div><div>E.g. in popular benchmark Coremark there are various FSMs which LLVM could optimize more. GCC devs implemented this optimization [1].</div><div><br></div><div>[1] <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54742">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54742</a></div></div></div></div>