<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I mean SVN head, but it might have been fixed in 2.6 as well, I don't remember.<div><br><div><div>On Jan 25, 2010, at 2:47 PM, Augustine Mathews wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks chris.<br><br>Do you mean llvm 2.6 when you say mainline or something else?<br><br>Augustine<br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 4:27 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br> On Jan 26, 2010, at 7:23 AM, Augustine Mathews wrote:<br> <br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Forgot cc, the entire group.<br> <br> How can deterministically iterate over the uses of a variable. i.e. the uses should be any particular order that doesn't change from execution to execution of the opt tool.<br> <br> To make myself more clearer, here is a snippet of code that has Values reordered each time I analyze a particular piece of code(which doesn't change) with the LLVM opt tool and my LLVM pass.<br> </blockquote> <br></div> use_iterator should be deterministic.<div class="im"><br> <br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Currently this is what happens in principle:<br> <br> Execution 1: <val 1> <val 2> <val 3><br> <br> Execution 2: <val 2> <val 1> <val 3><br> <br> The llvm version that I am using llvm 2.5. My machine is an x86 32 bit dual core machine.<br> </blockquote> <br></div> This was a bug in the LLVM 2.5 bitcode reader which has already been fixed, please update to mainline.<br><font color="#888888"> <br> -Chris<br> <br> </font></blockquote></div><br><br clear="all"><br>-- <br>Augustine Mathew<br></blockquote></div><br></div></body></html>