aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-05-27 14:20:48 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-05-27 14:20:48 +0000
commitf3ae4add6c51c6cfeb40cb26bb52f6bdfa3c4520 (patch)
tree7afffb21e685e332148aeeadaaea55d6ba1d8d54 /gcc/tree-data-ref.h
parent70660539ce8d6bc1c9b3cb39e26fc55b89d6ec6a (diff)
downloadgcc-f3ae4add6c51c6cfeb40cb26bb52f6bdfa3c4520.zip
gcc-f3ae4add6c51c6cfeb40cb26bb52f6bdfa3c4520.tar.gz
gcc-f3ae4add6c51c6cfeb40cb26bb52f6bdfa3c4520.tar.bz2
re PR tree-optimization/66272 (wrong code at -O3 on x86_64-linux-gnu)
2015-05-27 Richard Biener <rguenther@suse.de> PR tree-optimization/66272 Revert parts of 2014-08-15 Richard Biener <rguenther@suse.de> PR tree-optimization/62031 * tree-data-ref.c (dr_analyze_indices): Do not set DR_UNCONSTRAINED_BASE. (dr_may_alias_p): All indirect accesses have to go the formerly DR_UNCONSTRAINED_BASE path. * tree-data-ref.h (struct indices): Remove unconstrained_base member. (DR_UNCONSTRAINED_BASE): Remove. * gcc.dg/torture/pr66272.c: New testcase. From-SVN: r223759
Diffstat (limited to 'gcc/tree-data-ref.h')
-rw-r--r--gcc/tree-data-ref.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-data-ref.h b/gcc/tree-data-ref.h
index edb3b56..9d8e699 100644
--- a/gcc/tree-data-ref.h
+++ b/gcc/tree-data-ref.h
@@ -81,6 +81,10 @@ struct indices
/* A list of chrecs. Access functions of the indices. */
vec<tree> access_fns;
+
+ /* Whether BASE_OBJECT is an access representing the whole object
+ or whether the access could not be constrained. */
+ bool unconstrained_base;
};
struct dr_alias
@@ -129,6 +133,7 @@ struct data_reference
#define DR_STMT(DR) (DR)->stmt
#define DR_REF(DR) (DR)->ref
#define DR_BASE_OBJECT(DR) (DR)->indices.base_object
+#define DR_UNCONSTRAINED_BASE(DR) (DR)->indices.unconstrained_base
#define DR_ACCESS_FNS(DR) (DR)->indices.access_fns
#define DR_ACCESS_FN(DR, I) DR_ACCESS_FNS (DR)[I]
#define DR_NUM_DIMENSIONS(DR) DR_ACCESS_FNS (DR).length ()