aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-02-25 03:45:37 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-02-25 03:45:37 +0000
commit2b5936fd6163727b4be123ac730457a2d752aa77 (patch)
tree1384514299fb504c9d14e1021034eebebf7f8bb6 /gcc/cse.c
parent964a98317cdebd20f9d2f034068ee7246ce62ff8 (diff)
downloadgcc-2b5936fd6163727b4be123ac730457a2d752aa77.zip
gcc-2b5936fd6163727b4be123ac730457a2d752aa77.tar.gz
gcc-2b5936fd6163727b4be123ac730457a2d752aa77.tar.bz2
cse.c (delete_trivially_dead_insns): Speed up by minimizing calls to find_reg_note.
* cse.c (delete_trivially_dead_insns): Speed up by minimizing calls to find_reg_note. From-SVN: r95532
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 5bc6ce4..60dc9a9 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -7329,7 +7329,7 @@ delete_trivially_dead_insns (rtx insns, int nreg)
ndead++;
}
- if (find_reg_note (insn, REG_LIBCALL, NULL_RTX))
+ if (in_libcall && find_reg_note (insn, REG_LIBCALL, NULL_RTX))
{
in_libcall = 0;
dead_libcall = 0;