https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30049
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsm28 at gcc dot gnu.org --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- The specific case with a const int NODES might be also something the frontend is allowed to optimize? Still the case where constant propagation can figure out the bound could be optimized. I'll note that using a VLA can sometimes reduce stack usage.