mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-20 05:40:27 +08:00
tree-ssa-dse.c (valid_ao_ref_for_dse): Reject ao_refs with negative offsets.
* tree-ssa-dse.c (valid_ao_ref_for_dse): Reject ao_refs with negative offsets. From-SVN: r253691
This commit is contained in:
parent
62e1c6780d
commit
8b48488fbe
@ -1,3 +1,8 @@
|
||||
2017-10-12 Jeff Law <law@redhat.com>
|
||||
|
||||
* tree-ssa-dse.c (valid_ao_ref_for_dse): Reject ao_refs with
|
||||
negative offsets.
|
||||
|
||||
2017-10-12 Martin Sebor <msebor@redhat.com>
|
||||
|
||||
PR other/82301
|
||||
|
@ -131,6 +131,7 @@ valid_ao_ref_for_dse (ao_ref *ref)
|
||||
&& ref->max_size != -1
|
||||
&& ref->size != 0
|
||||
&& ref->max_size == ref->size
|
||||
&& ref->offset >= 0
|
||||
&& (ref->offset % BITS_PER_UNIT) == 0
|
||||
&& (ref->size % BITS_PER_UNIT) == 0
|
||||
&& (ref->size != -1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user