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:
parent
31589ec609
commit
91d9ede4ef
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue