This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 1/2] [graphite] Use refs instead of values.
- From: hiraditya <hiraditya at msn dot com>
- To: hiraditya at msn dot com
- Cc: sebpop at gmail dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Dec 2015 22:54:25 -0600
- Subject: [PATCH 1/2] [graphite] Use refs instead of values.
- Authentication-results: sourceware.org; auth=none
Passes bootstrap and regtest.
gcc/ChangeLog:
2015-12-15 hiraditya <hiraditya@msn.com>
* graphite-sese-to-poly.c (build_poly_sr): Use refs.
---
gcc/graphite-sese-to-poly.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index 480c552..ff45599 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -1064,8 +1064,8 @@ build_poly_sr (poly_bb_p pbb)
{
scop_p scop = PBB_SCOP (pbb);
gimple_poly_bb_p gbb = PBB_BLACK_BOX (pbb);
- vec<scalar_use> reads = gbb->read_scalar_refs;
- vec<tree> writes = gbb->write_scalar_refs;
+ vec<scalar_use> &reads = gbb->read_scalar_refs;
+ vec<tree> &writes = gbb->write_scalar_refs;
isl_space *dc = isl_set_get_space (pbb->domain);
int nb_out = 1;
--
2.1.4