tree-cfg.c (tree_forwarder_block_p): Speed up by reordering two checks.

* tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
	two checks.

From-SVN: r91108
This commit is contained in:
Kazu Hirata 2004-11-23 22:38:07 +00:00 committed by Kazu Hirata
parent 31589ec609
commit 91d9ede4ef
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
* tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
two checks.
2004-11-23 Zack Weinberg <zack@codesourcery.com>
* function.h (struct function): Remove calls_longjmp.

View File

@ -3907,9 +3907,6 @@ tree_forwarder_block_p (basic_block bb)
gcc_assert (bb != ENTRY_BLOCK_PTR);
#endif
if (find_edge (ENTRY_BLOCK_PTR, bb))
return false;
/* Now walk through the statements. We can ignore labels, anything else
means this is not a forwarder block. */
for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
@ -3928,6 +3925,9 @@ tree_forwarder_block_p (basic_block bb)
}
}
if (find_edge (ENTRY_BLOCK_PTR, bb))
return false;
return true;
}