projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62e1c67
)
tree-ssa-dse.c (valid_ao_ref_for_dse): Reject ao_refs with negative offsets.
author
Jeff Law
<law@redhat.com>
Thu, 12 Oct 2017 18:09:11 +0000
(12:09 -0600)
committer
Jeff Law
<law@gcc.gnu.org>
Thu, 12 Oct 2017 18:09:11 +0000
(12:09 -0600)
* tree-ssa-dse.c (valid_ao_ref_for_dse): Reject ao_refs with
negative offsets.
From-SVN: r253691
gcc/ChangeLog
patch
|
blob
|
history
gcc/tree-ssa-dse.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index dc17b705025daeceff773667b17caeba50f8439c..d5ee088e77f4eb4c32cd79313ae06e8d81843176 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-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
diff --git
a/gcc/tree-ssa-dse.c
b/gcc/tree-ssa-dse.c
index 6f58fffc6938e2c8dade8668e7e212c921e570af..87e2fce9ac5ae0983658e0a6c39c2492f9f978ff 100644
(file)
--- a/
gcc/tree-ssa-dse.c
+++ b/
gcc/tree-ssa-dse.c
@@
-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));