https://issues.dlang.org/show_bug.cgi?id=22158 --- Comment #1 from Basile-z <b2.temp at gmx.com> --- I suggest to edit the tittle: Optimize away empty loops -> Optimize away empty loops that have no side effect because the Test and the Increment can do things even if the loop body is empty --