Commit 40a32862 by Richard Henderson Committed by Richard Henderson

* tree-cfg.c (is_ctrl_stmt): Use a switch.

From-SVN: r151605
parent 8e7c5fdd
2009-09-10 Richard Henderson <rth@redhat.com> 2009-09-10 Richard Henderson <rth@redhat.com>
* tree-cfg.c (is_ctrl_stmt): Use a switch.
* tree-cfg.c (gimple_can_merge_blocks_p): Move label and * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
loop latch tests earlier. loop latch tests earlier.
......
...@@ -2735,11 +2735,17 @@ gimple_cfg2vcg (FILE *file) ...@@ -2735,11 +2735,17 @@ gimple_cfg2vcg (FILE *file)
bool bool
is_ctrl_stmt (gimple t) is_ctrl_stmt (gimple t)
{ {
return gimple_code (t) == GIMPLE_COND switch (gimple_code (t))
|| gimple_code (t) == GIMPLE_SWITCH {
|| gimple_code (t) == GIMPLE_GOTO case GIMPLE_COND:
|| gimple_code (t) == GIMPLE_RETURN case GIMPLE_SWITCH:
|| gimple_code (t) == GIMPLE_RESX; case GIMPLE_GOTO:
case GIMPLE_RETURN:
case GIMPLE_RESX:
return true;
default:
return false;
}
} }
......
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