toplev.c (rest_of_compilation): Do not set reload_completed.

Wed Dec 23 00:10:01 1998  Jeffrey A Law  (law@cygnus.com)
        * toplev.c (rest_of_compilation): Do not set reload_completed.
        * reload1.c (reload): Set reload_completed before calling
        cleanup_subreg_operands.

From-SVN: r24400
This commit is contained in:
Jeffrey A Law 1998-12-22 23:13:41 +00:00 committed by Jeff Law
parent 3d0ec3b37c
commit 2ae7465155
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Wed Dec 23 00:10:01 1998 Jeffrey A Law (law@cygnus.com)
* toplev.c (rest_of_compilation): Do not set reload_completed.
* reload1.c (reload): Set reload_completed before calling
cleanup_subreg_operands.
Tue Dec 22 23:58:31 1998 Richard Henderson <rth@cygnus.com>
* reload1.c (emit_reload_insns): Check `set' not null before use.

View File

@ -1116,6 +1116,11 @@ reload (first, global, dumpfile)
}
}
/* We must set reload_completed now since the cleanup_subreg_operands call
below will re-recognize each insn and reload may have generated insns
which are only valid during and after reload. */
reload_completed = 1;
/* Make a pass over all the insns and delete all USEs which we inserted
only to tag a REG_EQUAL note on them. Remove all REG_DEAD and REG_UNUSED
notes. Delete all CLOBBER insns and simplify (subreg (reg)) operands.

View File

@ -3967,8 +3967,6 @@ rest_of_compilation (decl)
if (failure)
goto exit_rest_of_compilation;
reload_completed = 1;
/* Do a very simple CSE pass over just the hard registers. */
if (optimize > 0)
reload_cse_regs (insns);