summaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-27 18:33:26 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-27 18:33:26 +0000
commit41a9f7e90eaf5d29c8ed0ae5b1659d62d2d14887 (patch)
treef3f18d5f8a5ac126ea9ba6a73f3750852fca6d94 /gcc/tree-cfg.c
parentddd98d431d867cf3ba55e0b4e22d8d8d214c3cb3 (diff)
downloadgcc-41a9f7e90eaf5d29c8ed0ae5b1659d62d2d14887.tar.gz
* tree-cfg.c (thread_jumps): Speed up by reordering the two
conditions for entering basic blocks into worklist. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89700 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 4492daa1e72..e606749fa9d 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -3974,11 +3974,11 @@ thread_jumps (void)
among BB's predecessors. */
FOR_EACH_EDGE (e, ei, bb->preds)
{
- /* We are not interested in threading jumps from a forwarder
- block. */
- if (!bb_ann (e->src)->forwardable
- /* We don't want to put a duplicate into WORKLIST. */
- && (e->src->flags & BB_VISITED) == 0)
+ /* We don't want to put a duplicate into WORKLIST. */
+ if ((e->src->flags & BB_VISITED) == 0
+ /* We are not interested in threading jumps from a forwarder
+ block. */
+ && !bb_ann (e->src)->forwardable)
{
e->src->flags |= BB_VISITED;
worklist[size] = e->src;
@@ -4013,11 +4013,11 @@ thread_jumps (void)
predecessors. */
FOR_EACH_EDGE (f, ej, bb->preds)
{
- /* We are not interested in threading jumps from a
- forwarder block. */
- if (!bb_ann (f->src)->forwardable
- /* We don't want to put a duplicate into WORKLIST. */
- && (f->src->flags & BB_VISITED) == 0)
+ /* We don't want to put a duplicate into WORKLIST. */
+ if ((f->src->flags & BB_VISITED) == 0
+ /* We are not interested in threading jumps from a
+ forwarder block. */
+ && !bb_ann (f->src)->forwardable)
{
f->src->flags |= BB_VISITED;
worklist[size] = f->src;