https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89721
--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> --- Author: segher Date: Fri Mar 15 22:09:15 2019 New Revision: 269716 URL: https://gcc.gnu.org/viewcvs?rev=269716&root=gcc&view=rev Log: LRA: side_effects_p stmts' output is not invariant (PR89721) PR89721 shows LRA treating an unspec_volatile's result as invariant, which of course isn't correct. This patch fixes it. PR rtl-optimization/89721 * lra-constraints (invariant_p): Return false if side_effects_p holds. Modified: trunk/gcc/ChangeLog trunk/gcc/lra-constraints.c