From 3e42ccd2870bbc59f75cd3a406f3f1ad4ce07f27 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 31 Jul 2001 15:43:22 +0200 Subject: [PATCH] Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka * reg-stack (convert_regs_1): Fix best edge condition. From-SVN: r44513 --- gcc/ChangeLog | 4 ++++ gcc/reg-stack.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 461b9023af3..f5adc890cc5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka + + * reg-stack (convert_regs_1): Fix best edge condition. + Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka * jump.c (duplicate_loop_exit_test): Better test for jumps diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 342477cb329..54a8ab2472b 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -2630,6 +2630,8 @@ convert_regs_1 (file, block) beste = e; else if (EDGE_FREQUENCY (beste) < EDGE_FREQUENCY (e)) beste = e; + else if (EDGE_FREQUENCY (beste) > EDGE_FREQUENCY (e)) + ; else if (beste->count < e->count) beste = e; else if (beste->count > e->count)