summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadedge.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-25 15:33:34 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-25 15:33:34 +0000
commite2914898246f1d8711a7a26e69b87a70cc9f09c2 (patch)
tree1dfdaa7e4acd2b6fce294316b85339816660856f /gcc/tree-ssa-threadedge.c
parent3b8499b5b56431e107c46ced316a0f57a810c94b (diff)
downloadgcc-e2914898246f1d8711a7a26e69b87a70cc9f09c2.tar.gz
* tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
than foo[foo.length () - 1] to access last member in a vec. * tree-ssa-threadupdate.c (register_jump_thread): Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202892 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-threadedge.c')
-rw-r--r--gcc/tree-ssa-threadedge.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/tree-ssa-threadedge.c b/gcc/tree-ssa-threadedge.c
index 47db2804117..2ca56342aeb 100644
--- a/gcc/tree-ssa-threadedge.c
+++ b/gcc/tree-ssa-threadedge.c
@@ -947,8 +947,7 @@ thread_across_edge (gimple dummy_cond,
}
remove_temporary_equivalences (stack);
- propagate_threaded_block_debug_into (path[path.length () - 1]->dest,
- e->dest);
+ propagate_threaded_block_debug_into (path.last ()->dest, e->dest);
register_jump_thread (path, false);
path.release ();
return;
@@ -987,7 +986,7 @@ thread_across_edge (gimple dummy_cond,
path.safe_push (taken_edge);
found = false;
if ((e->flags & EDGE_DFS_BACK) == 0
- || ! cond_arg_set_in_bb (path[path.length () - 1], e->dest))
+ || ! cond_arg_set_in_bb (path.last (), e->dest))
found = thread_around_empty_blocks (taken_edge,
dummy_cond,
handle_dominating_asserts,
@@ -999,7 +998,7 @@ thread_across_edge (gimple dummy_cond,
record the jump threading opportunity. */
if (found)
{
- propagate_threaded_block_debug_into (path[path.length () - 1]->dest,
+ propagate_threaded_block_debug_into (path.last ()->dest,
taken_edge->dest);
register_jump_thread (path, true);
}