aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-10-04 11:30:10 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-10-04 11:30:10 -0700
commit4afd525437e0b5de945306de871c34f08e6f1e13 (patch)
treeb432e804692a0ab97c702677dc31a7296be48cba /gcc
parentce7695e001e0109d9dc5f74f747acefd8267468f (diff)
downloadgcc-4afd525437e0b5de945306de871c34f08e6f1e13.zip
gcc-4afd525437e0b5de945306de871c34f08e6f1e13.tar.gz
gcc-4afd525437e0b5de945306de871c34f08e6f1e13.tar.bz2
toplev.c (rest_of_compilation): Turn on cse_not_expected before cse2 instead of after.
* toplev.c (rest_of_compilation): Turn on cse_not_expected before cse2 instead of after. From-SVN: r29806
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/toplev.c9
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4eef6fa..c714764 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Mon Oct 4 11:28:37 1999 Richard Henderson <rth@cygnus.com>
+
+ * toplev.c (rest_of_compilation): Turn on cse_not_expected
+ before cse2 instead of after.
+
Mon Oct 4 09:55:17 1999 Stan Cox <scox@cygnus.com>
* mips.h (GO_IF_LEGITIMATE_ADDRESS): Let leasi/liadi handle large
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 662ab40..b940e3f 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3856,6 +3856,11 @@ rest_of_compilation (decl)
ggc_collect ();
}
+ /* ??? Well, nearly. If HAVE_conditional_arithmetic, jump_optimize
+ has put off all if-conversion until "after CSE". If we put this
+ off any longer we may miss out doing if-conversion entirely. */
+ cse_not_expected = 1;
+
if (optimize > 0)
{
if (cse2_dump)
@@ -3925,10 +3930,6 @@ rest_of_compilation (decl)
ggc_collect ();
}
- /* We are no longer anticipating cse in this function, at least. */
-
- cse_not_expected = 1;
-
/* Now we choose between stupid (pcc-like) register allocation
(if we got the -noreg switch and not -opt)
and smart register allocation. */