diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-25 10:28:01 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-25 10:28:01 +0000 |
commit | d8663b3e6304db3bdcfd45c8f6c4487aa0cf49e2 (patch) | |
tree | 8d65c5675dbbd95eb2d7da28869ef23844103971 | |
parent | ae85a37ae0290595cf4b6b5729877a8f080d4d7e (diff) | |
download | gcc-d8663b3e6304db3bdcfd45c8f6c4487aa0cf49e2.tar.gz |
* bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
* df.c (df_free): Likewise.
* ra-build.c (ra_build_free, ra_build_free_all): Likewise.
* tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91280 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/bt-load.c | 5 | ||||
-rw-r--r-- | gcc/df.c | 6 | ||||
-rw-r--r-- | gcc/ra-build.c | 10 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 3 |
5 files changed, 11 insertions, 18 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fae4a9ddddc..b162c9b8019 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2004-11-25 Nathan Sidwell <nathan@codesourcery.com> + * bt-load.c (migrate_btr_defs): Remove unneeded NULL check. + * df.c (df_free): Likewise. + * ra-build.c (ra_build_free, ra_build_free_all): Likewise. + * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise. + * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ... (ALLOC_REG_SET): ... here. (FREE_REG_SET): Adjust. diff --git a/gcc/bt-load.c b/gcc/bt-load.c index 3457fac31e0..34f19233818 100644 --- a/gcc/bt-load.c +++ b/gcc/bt-load.c @@ -1385,10 +1385,7 @@ migrate_btr_defs (enum reg_class btr_class, int allow_callee_save) } } else - { - if (def->live_range) - BITMAP_XFREE (def->live_range); - } + BITMAP_XFREE (def->live_range); } free (btrs_live); @@ -580,12 +580,10 @@ df_free (struct df *df) df->regs = 0; df->reg_size = 0; - if (df->bbs_modified) - BITMAP_XFREE (df->bbs_modified); + BITMAP_XFREE (df->bbs_modified); df->bbs_modified = 0; - if (df->insns_modified) - BITMAP_XFREE (df->insns_modified); + BITMAP_XFREE (df->insns_modified); df->insns_modified = 0; BITMAP_XFREE (df->all_blocks); diff --git a/gcc/ra-build.c b/gcc/ra-build.c index 20254ea2e86..d4438dc9b59 100644 --- a/gcc/ra-build.c +++ b/gcc/ra-build.c @@ -3125,10 +3125,7 @@ ra_build_free (void) { struct tagged_conflict *cl; for (cl = web_parts[i].sub_conflicts; cl; cl = cl->next) - { - if (cl->conflicts) - BITMAP_XFREE (cl->conflicts); - } + BITMAP_XFREE (cl->conflicts); web_parts[i].sub_conflicts = NULL; } @@ -3154,10 +3151,7 @@ ra_build_free_all (struct df *df) { struct tagged_conflict *cl; for (cl = web_parts[i].sub_conflicts; cl; cl = cl->next) - { - if (cl->conflicts) - BITMAP_XFREE (cl->conflicts); - } + BITMAP_XFREE (cl->conflicts); web_parts[i].sub_conflicts = NULL; } sbitmap_free (live_over_abnormal); diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 1de1e8292f8..58c751e71bc 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -2047,8 +2047,7 @@ set_use_iv_cost (struct ivopts_data *data, if (cost == INFTY) { - if (depends_on) - BITMAP_XFREE (depends_on); + BITMAP_XFREE (depends_on); return; } |