diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-11-06 15:57:25 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-11-06 15:57:25 +0000 |
commit | 08d930240971fcc6d7b8023aed2f367581669df9 (patch) | |
tree | b1dea0bb89e42d81e10a836d8ded750a68a9fd85 | |
parent | 03e9b84966702f926adfbf2c1cfe0cce0a7e72ae (diff) | |
download | gcc-08d930240971fcc6d7b8023aed2f367581669df9.zip gcc-08d930240971fcc6d7b8023aed2f367581669df9.tar.gz gcc-08d930240971fcc6d7b8023aed2f367581669df9.tar.bz2 |
tree-cfg.c (find_taken_edge_cond_expr): Remove an "if" statement that never triggers.
* tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
statement that never triggers.
From-SVN: r90176
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be68b52..c9429d1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 67b96a5..9e0aa16 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -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 |