<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 8, 2016 at 6:36 PM, mats petersson <span dir="ltr"><<a href="mailto:mats@planetcatfish.com" target="_blank">mats@planetcatfish.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>That REALLY sounds like something that should be done at an earlier stage in the compilation - at LLVM level, you can't really know whether something was produced by the compiler itself, or as a consequence of something in the source code. <br></div></div></blockquote><div><br></div><div>I guess the compiler should know about it. It is inserting these new variables into the ir code. And the pattern for temporary variables in llvm is somehow instruction-dependent, e.g. "add" instructions have temporary variables like %add, %add2 etc.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Unless there is some very specific pattern to those varibles (e.g. "they are always called XYZ_abc_kerflunk_billy_bob_*" - it is unlikely that the compiler will call a generated variable that).<br></div></div></blockquote><div><br></div><div>Best,<br></div><div>Mohammad <br></div></div><br></div></div>