mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-25 03:54:17 +01:00
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:
parent
dc94a1c589
commit
48551fe40b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13209
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user