LRA: side_effects_p stmts' output is not invariant (PR89721)
authorSegher Boessenkool <segher@kernel.crashing.org>
Fri, 15 Mar 2019 22:09:15 +0000 (23:09 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Fri, 15 Mar 2019 22:09:15 +0000 (23:09 +0100)
commit850b8aa3091a2c62200bde93fc61101e4dec45b6
tree6f2bcf43a0baaf2389f316018cdd8a154739f785
parent30bb0e44d3893b27c6cd74c72a077e5a0d96a244
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.

From-SVN: r269716
gcc/ChangeLog
gcc/lra-constraints.c