Use refs instead of values.
authorAditya Kumar <hiraditya@msn.com>
Wed, 16 Dec 2015 17:33:00 +0000 (17:33 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 16 Dec 2015 17:33:00 +0000 (17:33 +0000)
Passes bootstrap and regtest.

gcc/ChangeLog:

2015-12-15  hiraditya  <hiraditya@msn.com>

        * graphite-sese-to-poly.c (build_poly_sr): Use refs.

From-SVN: r231707

gcc/graphite-sese-to-poly.c

index 43dcb410af5d5200668eee264831ee90654bffc7..a0361f969953b62132e260891b71d372ebe9c378 100644 (file)
@@ -1056,8 +1056,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;