diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-02-17 15:32:05 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-02-17 15:32:05 +0000 |
commit | a8d15480cc00440e438e55a595e4da03b12aee7d (patch) | |
tree | 18d64df0f20496ddad14767243a11e9b43210f44 | |
parent | 3b64313fc58f37492884fb3ad76869f51dca2b27 (diff) | |
download | gcc-a8d15480cc00440e438e55a595e4da03b12aee7d.tar.gz |
* tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
obsolete comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220763 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vrp.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db1cdb700e5..dcd3d26157f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-17 Jeff Law <law@redhat.com> + + * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove + obsolete comment. + 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com> * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index d996bcccda4..9556ede6247 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -10173,10 +10173,7 @@ identify_jump_threads (void) if (! potentially_threadable_block (bb)) continue; - /* We only care about blocks ending in a COND_EXPR. While there - may be some value in handling SWITCH_EXPR here, I doubt it's - terribly important. */ - last = gsi_stmt (gsi_last_nondebug_bb (bb)); + last = last_stmt (bb); /* We're basically looking for a switch or any kind of conditional with integral or pointer type arguments. Note the type of the second |