https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97627
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Smaller testcase from other PR, still needs the C++ FE struct S { unsigned short x, y; } m = { 0, 0 }; void __attribute__((noipa)) bar() {} void __attribute__((noipa)) baz() { __builtin_exit (0); } void foo() { while (1) { unsigned int nrn_pass_num = m.x + 1; for (unsigned int nrn_idx = 0; nrn_idx < nrn_pass_num; ++nrn_idx) bar(); baz(); } } int main() { foo(); return 0; }