[Issue 20990] Optimizer should move cold branches to the end of the function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 30 09:02:30 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20990

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Iain Buclaw from comment #2)
> Everything that follows the assert should also be considered cold too.

Actually, it is not just cold, it is dead and doesn't make it to the
executable.

> Though hopefully "unreachable" warnings/errors would occur before that point.

It does if warnings are enabled (-w switch).

--


More information about the Digitalmars-d-bugs mailing list