<div dir="ltr">On Fri, Dec 18, 2015 at 1:36 PM, Joe Groff <span dir="ltr"><<a href="mailto:jgroff@apple.com" target="_blank">jgroff@apple.com</a>></span> wrote:<br><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Do you have the optimizer enabled (using -O)? I see inlining happening as you'd expect.</div></blockquote><div><br></div></span><div>Thanks for looking at this. Nobody else here who can check my work.</div><div><br></div><div>Last time I tested not-as-a-module it wasn't inlining. Perhaps in that case I didn't have -O because of something I didn't understand about Xcode. This time around I added -O to the debug build instead of trying to build for release. It did inline all my test cases.<br></div><div><br></div><div>When it does inline it's making nice assembly. Even the subscript turns into exactly the same as myvec.x. So that's pretty awesome.<br></div><div><div><br></div></div><div><div>But it still doesn't inline for me across modules even with -O -whole-module-optimization. Only the myvec.x cases get inlined. I suspect this just isn't working and might come in time.<br></div><div><br></div></div><div>It's good enough for now. At least I don't have to write the internals with the clumsy mymatrix.w.y style instead of mymatrix[3][1].</div><div><br></div><div><span style="font-size:13px">-david (</span><a href="https://github.com/AE9RB/SwiftGL" style="font-size:13px" target="_blank">https://github.com/AE9RB/SwiftGL</a><span style="font-size:13px">)</span><br></div><div><br></div><div><br></div></div></div></div>
</div><br></div>