diff options
author | Jan Hubicka <jh@suse.cz> | 2003-03-14 21:15:13 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2003-03-14 20:15:13 +0000 |
commit | cd648cec5c78e596fc86e570f243dac6752ad764 (patch) | |
tree | 3085a6e478e08536454831e0b1720bcba93526a0 /gcc/cse.c | |
parent | 82c34dcb178f76c9ce6c0a6b7fac79b3c6aaff8b (diff) | |
download | gcc-cd648cec5c78e596fc86e570f243dac6752ad764.tar.gz |
cselib.c (clear_table): Do not take argument; always clear just used slots.
* cselib.c (clear_table): Do not take argument; always clear just
used slots.
(cselib_process_insn): Update call of clear_table
(cselib_init): Do not call clear_table.
(cselib_finish): Clear table.
* cse.c (count_reg_usage): Do not check side_effects_p.
* rtlanal.c (set_noop_p): Check side_effects_p only when set looks
like noop.
(find_reg_equal_equiv_note): Do not use find_reg_note.
From-SVN: r64369
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/cse.c b/gcc/cse.c index 6321c7c6dd9..9f6b96d20ce 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -7494,15 +7494,8 @@ count_reg_usage (x, counts, dest, incr) /* Unless we are setting a REG, count everything in SET_DEST. */ if (GET_CODE (SET_DEST (x)) != REG) count_reg_usage (SET_DEST (x), counts, NULL_RTX, incr); - - /* If SRC has side-effects, then we can't delete this insn, so the - usage of SET_DEST inside SRC counts. - - ??? Strictly-speaking, we might be preserving this insn - because some other SET has side-effects, but that's hard - to do and can't happen now. */ count_reg_usage (SET_SRC (x), counts, - side_effects_p (SET_SRC (x)) ? NULL_RTX : SET_DEST (x), + SET_DEST (x), incr); return; |