[Issue 23857] backend inliner takes too long on recursive function call
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 23 01:18:44 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23857
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
> It takes ~26 seconds on my PC (WSL2, DMD64 D Compiler v2.103.0).
Notice "30" in this line in backend/go.d:
if (!(go.changes && go.mfoptim & MFloop && (clock() - starttime) < 30 *
CLOCKS_PER_SEC))
It's there to prevent infinite loop if the optimizer cannot find a stable
state.
--
More information about the Digitalmars-d-bugs
mailing list