diff options
author | Jan Hubicka <jh@suse.cz> | 2001-07-18 20:52:41 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-07-18 18:52:41 +0000 |
commit | dc42616f43ef046a6ff62d3c070c70a48fbac65b (patch) | |
tree | 14ae828c798ff53bb408601719b8d94e0b03feae /gcc | |
parent | e5c83273cf9b1b8d7f1a20ed0620be5a24758e7a (diff) | |
download | gcc-dc42616f43ef046a6ff62d3c070c70a48fbac65b.zip gcc-dc42616f43ef046a6ff62d3c070c70a48fbac65b.tar.gz gcc-dc42616f43ef046a6ff62d3c070c70a48fbac65b.tar.bz2 |
* cse.c: Undo my previous patch.
From-SVN: r44126
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cse.c | 32 |
2 files changed, 9 insertions, 27 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87d56d4..5edcb09 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz> + + * cse.c: Undo my previous patch. + 2001-07-18 Tom Tromey <tromey@redhat.com> For PR java/2812: @@ -7488,7 +7488,7 @@ count_reg_usage (x, counts, dest, incr) static bool set_live_p (set, insn, counts) rtx set; - rtx insn ATTRIBUTE_UNUSED; + rtx insn; int *counts; { #ifdef HAVE_cc0 @@ -7630,19 +7630,8 @@ delete_trivially_dead_insns (insns, nreg, preserve_basic_blocks) if (find_reg_note (insn, REG_RETVAL, NULL_RTX)) { in_libcall = 1; - /* If the insn storing return value is dead, whole libcall is dead. - Otherwise attempt to eliminate libcall by doing an direct - operation. */ - if (!insn_live_p (insn, counts)) - { - live_insn = 0; - dead_libcall = 1; - } - else - { - live_insn = 1; - dead_libcall = dead_libcall_p (insn); - } + live_insn = 1; + dead_libcall = dead_libcall_p (insn); } else if (in_libcall) live_insn = ! dead_libcall; @@ -7682,19 +7671,8 @@ delete_trivially_dead_insns (insns, nreg, preserve_basic_blocks) if (find_reg_note (insn, REG_RETVAL, NULL_RTX)) { in_libcall = 1; - /* If the insn storing return value is dead, whole libcall is dead. - Otherwise attempt to eliminate libcall by doing an direct - operation. */ - if (!insn_live_p (insn, counts)) - { - live_insn = 0; - dead_libcall = 1; - } - else - { - live_insn = 1; - dead_libcall = dead_libcall_p (insn); - } + live_insn = 1; + dead_libcall = dead_libcall_p (insn); } else if (in_libcall) live_insn = ! dead_libcall; |