tree-vrp.c (identify_jump_threads): Use last_stmt.
authorJeff Law <law@redhat.com>
Tue, 17 Feb 2015 15:32:05 +0000 (08:32 -0700)
committerJeff Law <law@gcc.gnu.org>
Tue, 17 Feb 2015 15:32:05 +0000 (08:32 -0700)
        * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
        obsolete comment.

From-SVN: r220763

gcc/ChangeLog
gcc/tree-vrp.c

index db1cdb700e5894f6fe309e9419a0db3c16a77cf0..dcd3d26157f652466296654d0ab846c44b285217 100644 (file)
@@ -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
index d996bcccda473103cb8df596df1f021a24afacbc..9556ede624744ac5c507711b7a6b8cfb670dd293 100644 (file)
@@ -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