Commit 91d9ede4 by Kazu Hirata Committed by Kazu Hirata

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
parent 31589ec6
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment