summaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-18 18:52:41 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-18 18:52:41 +0000
commitf88fd23c3f9635cb42551f99fb96c1a5e3ea7fb6 (patch)
tree14ae828c798ff53bb408601719b8d94e0b03feae /gcc/cse.c
parent33985c892dc3d37849263781894f4bd6e5926ace (diff)
downloadgcc-f88fd23c3f9635cb42551f99fb96c1a5e3ea7fb6.tar.gz
* cse.c: Undo my previous patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44126 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c32
1 files changed, 5 insertions, 27 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 73cbb880f2d..266b1076c75 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -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;