tree-cfg.c (find_taken_edge_cond_expr): Remove an "if" statement that never triggers.
authorKazu Hirata <kazu@cs.umass.edu>
Sat, 6 Nov 2004 15:57:25 +0000 (15:57 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 6 Nov 2004 15:57:25 +0000 (15:57 +0000)
* tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
statement that never triggers.

From-SVN: r90176

gcc/ChangeLog
gcc/tree-cfg.c

index be68b522c7819e6468452156f1a1a8a437fd7264..c9429d18d7e473a942332e82d80e2f5be8c461a3 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
+       statement that never triggers.
+
 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * config/s390/2064.md ("z_o2", "z_o3"): Remove.
index 67b96a5737dee4798676a2ddfad88f8921fc82f0..9e0aa165676c74754034300dcfbae90ea2253d09 100644 (file)
@@ -1987,11 +1987,6 @@ find_taken_edge_cond_expr (basic_block bb, tree val)
 
   extract_true_false_edges_from_block (bb, &true_edge, &false_edge);
 
-  /* If both edges of the branch lead to the same basic block, it doesn't
-     matter which edge is taken.  */
-  if (true_edge->dest == false_edge->dest)
-    return true_edge;
-
   /* Otherwise, try to determine which branch of the if() will be taken.
      If VAL is a constant but it can't be reduced to a 0 or a 1, then
      we don't really know which edge will be taken at runtime.  This