Work around optimizer strength reduction bug.

Submitted by:	Richard Henderson <richard@atheist.tamu.edu>
Obtained from:	bug-gcc@prep.ai.mit.edu
This commit is contained in:
Jordan K. Hubbard 1996-01-04 04:44:47 +00:00
parent dc94a1c589
commit 48551fe40b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13209

View File

@ -6079,6 +6079,10 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
else
break;
#if 0 /* XXX patch to correct strength-reduction problem from
* Richard Henderson <richard@atheist.tamu.edu> incorporated
* 3 Jan 1996 - jkh@FreeBSD.org
*/
if (CONSTANT_P (arg))
{
/* First try to replace with any giv that has constant positive
@ -6224,6 +6228,7 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
}
#endif
}
#endif
/* If we get here, the biv can't be eliminated. */
return 0;