<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Nov 6, 2012, at 6:59 AM, Pankaj Gode <<a href="mailto:godepankaj@yahoo.com">godepankaj@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="background-color: rgb(255, 255, 255); font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt; position: static; z-index: auto;"><div style="RIGHT: auto">Hi,</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">We were using "linearscan" register scan with llc -O0 option. As per the llvm blog, this is replaced with greedy register alloation.</div>
<div style="RIGHT: auto"><a style="RIGHT: auto" href="http://blog.llvm.org/2011/09/greedy-register-allocation-in-llvm-30.html">http://blog.llvm.org/20<var id="yui-ie-cursor"></var>11/09/greedy-register-allocation-in-llvm-30.html</a></div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">But I think, this register allocation (i.e. 'greedy and 'basic') is blocked if used with -O0 option of llc. Only 'fast register allocator' option can be used with -O0. </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I wanted to understand that what will be consequence of forcefully enabling 'greedy allocation' ?</div></div></div></blockquote><div><br></div><div>You can use RAGreedy with -O0, but you need to enable the full optimizing register allocation pipeline:</div><div><br></div><div>$ llc -O0 -optimize-regalloc</div><div><br></div><div>Same thing if you want to use RABasic.</div><div><br></div><div>/jakob</div><div><br></div></div></body></html>