fix regression with MEM commoning
authorRichard Biener <rguenther@suse.de>
Tue, 28 Apr 2020 12:36:54 +0000 (14:36 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 29 Apr 2020 06:23:37 +0000 (08:23 +0200)
commitdf30ab70690d6088f367e74757f0b5dd6a2587e5
treec3e50145f5e2ba929017c2d63714e8aec891f12c
parent1d2290caad0dba52b285b47057b7c0e4e8d21feb
fix regression with MEM commoning

This fixes a regression when canonicalizing refs for LIM PR84362.
This possibly unshares and rewrites the refs in the internal data
and thus pointer equality no longer works in ref_always_accessed
computation.

2020-04-29  Richard Biener  <rguenther@suse.de>

* tree-ssa-loop-im.c (ref_always_accessed::operator ()):
Just check whether the stmt stores.
gcc/ChangeLog
gcc/tree-ssa-loop-im.c