<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Hi Prasad,</div><div><br></div><div>The comments at the beginning of RegAllocPBQP.cpp list the two most relevant papers for PBQP register allocation.</div>
<div><br></div><div>//   (1) Hames, L. and Scholz, B. 2006. Nearly optimal register allocation with                                                                                                                                             </div>
<div>//   PBQP. In Proceedings of the 7th Joint Modular Languages Conference                                                                                                                                                     </div>
<div>//   (JMLC'06). LNCS, vol. 4228. Springer, New York, NY, USA. 346-361.                                                                                                                                                      </div>
<div>//                                                                                                                                                                                                                          </div>
<div>//   (2) Scholz, B., Eckstein, E. 2002. Register allocation for irregular                                                                                                                                                   </div>
<div>//   architectures. In Proceedings of the Joint Conference on Languages,                                                                                                                                                    </div>
<div>//   Compilers and Tools for Embedded Systems (LCTES'02), ACM Press, New York,                                                                                                                                              </div>
<div>//   NY, USA, 139-148.                                </div><div><br></div><div>The basics of the linear scan algorithm are described in the paper "Linear Scan Register Allocation" by Poletto and Sarkar. However, LLVM's "linear scan" differs significantly from the behaviour described in that paper. In particular when LLVM's linear scan allocator spills a live interval it backtracks to the start of that interval to continue allocation. This means that LLVM's "linear scan" isn't actually linear. I'm not sure whether there's any reference material that describes the behaviour of LLVM's linear scan apart from the code itself.</div>
<div><br></div><div>Do any other register allocation people have a better answer to the linear scan question?</div><div><br></div><div>Cheers,</div><div>Lang.</div><br><div class="gmail_quote">On Tue, May 11, 2010 at 8:56 PM, prasad dp <span dir="ltr"><<a href="mailto:prasu.kothinti@gmail.com">prasu.kothinti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>we are currently working on my project that aims at improving the register allocation scheme by identifying if the interference graphs are chordal or not.<br>
 we are working on the llvm compiler .we are forcing the compiler to use PBQP register allocation scheme by an option of ' ' regalloc=pbqp ' during the execution of prgm. we have been succesfull in accessing the interference graph information and creating our version of interference matrix depicting the same information. we then use the same matrix to inspect for its chordal nature. and we are looking for colouring the chordal graph in a linear time using available algorithms.<br>

I am looking for material that is related to the above mentioned work that would help me to prepare my report. Particularly i am looking for the information about Linear scan algorithm and PBQP scheme. PLZ do help me out.<br>

<br>Thanks,<br>Durga Prasad<br>
<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" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br>