aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2016-07-13 02:44:59 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2016-07-13 02:44:59 +0000
commit4a0e3b5ac35c0f2b2b7b93aee81ddb10a45ff6d3 (patch)
tree68d440848ec2763264e4694d2d3088d6e6abf11c /gcc/tree-data-ref.c
parent8c6812476a028328a11c68079d1714c9f81b6279 (diff)
downloadgcc-4a0e3b5ac35c0f2b2b7b93aee81ddb10a45ff6d3.zip
gcc-4a0e3b5ac35c0f2b2b7b93aee81ddb10a45ff6d3.tar.gz
gcc-4a0e3b5ac35c0f2b2b7b93aee81ddb10a45ff6d3.tar.bz2
remove unnecessary calls to vec::release
There's no point in calling release () on an auto_vec just before it goes out of scope. gcc/ChangeLog: 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * tree-data-ref.c (find_data_references_in_stmt): Remove unnecessary call to vec::release. (graphite_find_data_references_in_stmt): Likewise. * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise. * tree-vect-stmts.c (vectorizable_condition): Likewise. From-SVN: r238286
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r--gcc/tree-data-ref.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c
index 44d5db0..337d278 100644
--- a/gcc/tree-data-ref.c
+++ b/gcc/tree-data-ref.c
@@ -3999,7 +3999,7 @@ find_data_references_in_stmt (struct loop *nest, gimple *stmt,
gcc_assert (dr != NULL);
datarefs->safe_push (dr);
}
- references.release ();
+
return ret;
}
@@ -4029,7 +4029,6 @@ graphite_find_data_references_in_stmt (loop_p nest, loop_p loop, gimple *stmt,
datarefs->safe_push (dr);
}
- references.release ();
return ret;
}