loop.c (strength_reduce): Fix sign of giv lifetime calculation for givs made from biv increments.

* loop.c (strength_reduce): Fix sign of giv lifetime calculation
	for givs made from biv increments.

From-SVN: r30927
This commit is contained in:
J"orn Rennecke 1999-12-14 19:18:50 +00:00 committed by Joern Rennecke
parent d7d5e42f2d
commit e1bb2458c4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 14 18:13:32 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (strength_reduce): Fix sign of giv lifetime calculation
for givs made from biv increments.
Tue Dec 14 08:11:27 1999 Richard Henderson <rth@cygnus.com>
* configure.in (alpha-osf, alpha-linux): Handle ev6[78].

View File

@ -4480,7 +4480,7 @@ strength_reduce (scan_start, end, loop_top, insn_count,
}
v->last_use = last_use_insn;
v->lifetime = INSN_LUID (v->insn) - INSN_LUID (last_use_insn);
v->lifetime = INSN_LUID (last_use_insn) - INSN_LUID (v->insn);
/* If the lifetime is zero, it means that this register is really
a dead store. So mark this as a giv that can be ignored.
This will not prevent the biv from being eliminated. */