[Issue 22155] practical range usage often causes unnecessary closure allocations.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 29 05:12:42 UTC 2021


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

kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net

--- Comment #1 from kinke <kinke at gmx.net> ---
LDC optimizes it away with -O for the 2 given testcases (via the GC2Stack IR
pass) - conceptually, it can prove that the closure doesn't escape after
inlining *everything*, and moves it back to the stack.

--


More information about the Digitalmars-d-bugs mailing list