local-alloc.c (update_equiv_regs): Don't eliminate constant expressions at -O0.

* local-alloc.c (update_equiv_regs): Don't eliminate constant
	expressions at -O0.

From-SVN: r42667
This commit is contained in:
Geoffrey Keating 2001-05-28 02:21:28 +00:00 committed by Geoffrey Keating
parent 81d87bcc58
commit 49a1867065
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-05-27 Geoffrey Keating <geoffk@redhat.com>
* local-alloc.c (update_equiv_regs): Don't eliminate constant
expressions at -O0.
2001-05-27 Stan Shebs <shebs@apple.com>
* objc/objc-act.c: Add/fix various comments.

View File

@ -1005,7 +1005,7 @@ update_equiv_regs ()
reg_equiv[regno].loop_depth = loop_depth;
/* Don't mess with things live during setjmp. */
if (REG_LIVE_LENGTH (regno) >= 0)
if (REG_LIVE_LENGTH (regno) >= 0 && optimize)
{
/* Note that the statement below does not affect the priority
in local-alloc! */