[Issue 22372] Loop index incorrectly optimised out for -release -O

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 10 02:31:15 UTC 2021


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #6 from Basile-z <b2.temp at gmx.com> ---
Hello, I've worked on the bug a bit and found the problem location in the
backend, in gloop, which performs loop optims:

`i` is optimized in the code that follows [1].

[1] https://github.com/dlang/dmd/blob/master/src/dmd/backend/gloop.d#L2966

--


More information about the Digitalmars-d-bugs mailing list