<div dir="ltr"><div dir="ltr">On Sun, Oct 13, 2019 at 3:43 AM Jonas Maebe <<a href="mailto:jonas@freepascal.org">jonas@freepascal.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The snippet came from the compiled program. It showed that the "while <br>
true do ;" infinite loop got removed by the peephole optimiser (as also <br>
mentioned by Martin). That was wrong. The peephole optimiser does not <br>
perform any dead code analyses. It's only supposed to transform code <br>
patterns into equivalent (but hopefully faster) ones.<br>
<br>
Adding a "v:=2;" statement at the start of the program, which would make <br>
the loop reachable, did not affect the generated code (i.e., the loop <br>
was still removed).<br>
<br>
<br>
Jonas<br></blockquote><div><br></div><div>Ah, I get it now.
So basically my comment to them on the tracker issue was just kind of focusing on the wrong thing. Now I know for next time, at least. Thanks! </div></div></div>