[Issue 20991] New: Optimizer is not unlining various forms of simple loops
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 28 22:30:49 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20991
Issue ID: 20991
Summary: Optimizer is not unlining various forms of simple
loops
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
The optimizer will unroll a loop of the form:
for (uint i = 0; i < 2; ++i)
foo(i);
but not:
for (uint i = 0; i <= 1; ++i)
foo(i);
or loops with more complex bodies.
It will not unroll more than two iterations. Should be up to 100.
--
More information about the Digitalmars-d-bugs
mailing list