https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115825
--- Comment #16 from Segher Boessenkool <segher at gcc dot gnu.org> --- Trivial stuff is no longer unrolled at all after this change. It does not matter *at all* whether an insn has a side effect or not, for whether code with such an insn should be unrolled or not. Any heuristic like that is totally broken, totally nonsensical. In all failing cases I saw none of the code will be eliminated at all ever.