<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">We might want to make physical registers negative and virtuals positive, or vice versa.   Then FirstVirtualRegister is 0 or 1, and we could get rid of those annoying subtractions of FirstVirtualRegister all over the virtual-register-handling passes.  Since 0 is used all over the place as "invalid register" it is probably best to leave this alone, let FirstVirtualRegister be 1, and simply ignore (i.e. treat as erroneous) the 0th element of anything keyed off FirstVirtualRegister.<div><br><div><div>On Jan 7, 2011, at 11:08 AMPST, Andrew Clinton wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 01/07/2011 02:07 AM, Chris Lattner wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Unless your goal is to merge this work onto LLVM mainline, the best thing to do is a local hack in your tree.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Chris<br></blockquote><br>Yes, I will create a patch for my tree to increase <br>FirstVirtualRegister.  Would this be a good change to include in 2.9?<br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div></blockquote></div><br></div></body></html>