<div dir="ltr"><div>I see it now.</div><div><br></div><div>But, why do they have  different memory addresses when compiled with -O1? <br></div><div><br></div><div>Is there a specific optimization that prevents using/reusing the same stack space?<br></div><div><br></div><div>Tnx!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 26, 2019 at 1:21 PM Tim Northover <<a href="mailto:t.p.northover@gmail.com">t.p.northover@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 26 Nov 2019 at 12:05, Mohammad Norouzi via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
> However, OK is called inside nqueens. So, the same stack space cannot be used/reused for both of them.<br>
<br>
nqueens is also called inside nqueens because it's a recursive<br>
implementation, and it's those two calls within nqueens that reuse the<br>
stack space. Notice that the reuse is *after* ok gets called.<br>
<br>
Cheers.<br>
<br>
Tim.<br>
</blockquote></div>