<html><head><base href="x-msg://4688/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Hi Najem,</div><div><br></div><div>On Mar 21, 2011, at 9:47 AM, NaJeM ErMeLeH wrote:</div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">I'm assisting my doctor who is doing a research and he wants to use the llvm compiler, my job is to profile build the benchmarks using llvm-prof.<br><br>What i want to know is the following<br><br>1- does llvm support profile feedback optimizations!?<br></div></span></blockquote><div><br></div><div>Not yet. Please see Bob's proposal:</div><a href="http://article.gmane.org/gmane.comp.compilers.llvm.devel/37107/match=profile">http://article.gmane.org/gmane.comp.compilers.llvm.devel/37107/match=profile</a></div><div><br><blockquote type="cite"><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">2- when i've used the llvm-prof it's input is an object file (not binary as other compilers) my question is how could I profile a whole benchmark program using the llvm-prof ?<span class="Apple-converted-space"> </span><font class="Apple-style-span" color="#000000" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" color="#144FAE" face="Tahoma" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></span></font></div></blockquote><div><br></div><div>I haven't done it, but I think the correct answer is to use llvm-ld to generate a single bitcode file, then run llvm-prof.</div><br><blockquote type="cite"><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">3- is there a way to print the spill code information (e.g. spill code count in a single function or basic block) ?<br></div></blockquote><div><br></div><div>-stats give you aggregate counts. Unfortunately, I don't know a way to do per-function reporting without using llvm-extract.</div><div><br></div><div>You might be able to scrape -debug-only=spiller output for block info.</div><div><br></div><div>-Andy</div><br><blockquote type="cite"><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">your help is appreciated.<br><br>regards,<br>~Najem<br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span>        <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></body></html>