diff options
author | Richard Henderson <rth@redhat.com> | 2009-09-10 11:28:05 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2009-09-10 11:28:05 -0700 |
commit | 40a3286202dc309e499c21a1b26176a6460aabf4 (patch) | |
tree | ceae75aefc4443ac98fc678bfb2b265466e3f6b7 | |
parent | 8e7c5fddbe7fd570fb7795843d2fda14fa9e5bfc (diff) | |
download | gcc-40a3286202dc309e499c21a1b26176a6460aabf4.zip gcc-40a3286202dc309e499c21a1b26176a6460aabf4.tar.gz gcc-40a3286202dc309e499c21a1b26176a6460aabf4.tar.bz2 |
* tree-cfg.c (is_ctrl_stmt): Use a switch.
From-SVN: r151605
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 16 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c110d53..fc595d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 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 loop latch tests earlier. diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index b834943..98339b4 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -2735,11 +2735,17 @@ gimple_cfg2vcg (FILE *file) bool is_ctrl_stmt (gimple t) { - return gimple_code (t) == GIMPLE_COND - || gimple_code (t) == GIMPLE_SWITCH - || gimple_code (t) == GIMPLE_GOTO - || gimple_code (t) == GIMPLE_RETURN - || gimple_code (t) == GIMPLE_RESX; + switch (gimple_code (t)) + { + case GIMPLE_COND: + case GIMPLE_SWITCH: + case GIMPLE_GOTO: + case GIMPLE_RETURN: + case GIMPLE_RESX: + return true; + default: + return false; + } } |