[Issue 20990] Optimizer should move cold branches to the end of the function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 28 21:59:25 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20990
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ibuclaw at gdcproject.org
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Walter Bright from comment #1)
> (In reply to Walter Bright from comment #0)
> > assert is a cold branch, and DMD move the assert to the end for the example:
>
> I meant it does "not move" the assert.
Everything that follows the assert should also be considered cold too. Though
hopefully "unreachable" warnings/errors would occur before that point.
--
More information about the Digitalmars-d-bugs
mailing list