https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65693
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Well, the RA issue is hard to deal with, there is a local register var that uses a register some instruction needs while the local register is live. Anyway, this alloca/VLA division issue is what I meant to fix with PR65220, but here unfortunately the RTL cprop isn't performed because the function has a single basic block and for some reason RTL cprop doesn't perform even the local cprop subpass then. And, at combine time, combiner attempts to simplify the insn, so the *udivmod<mode>4_pow2 pattern no longer matches. One possibility to fix this would be to add *udivmod<mode>4_pow2_1 pattern that would just have the lshiftrt and and instructions in PARALLEL until reload, then split them.