<div dir="ltr"><div><div><div><div><div>Hi Dear Quentin,<br><br></div>Thank you for your response.<br><br></div>I ran bugpoint, and attach the outputs to this email. Hopefully they help.<br><br></div><div>My command line is this:<br>
~/Desktop/Mibench/consumer/jpeg/jpeg-6a$ llc   -reserveRegs=true  -march=arm -O0 cjpeg.ll -o cjpeg.s <br>error: ran out of registers during register allocation<br><br></div><div>For running bugponit I used this:<br>bugpoint  cjpeg.ll -llc-safe --safe-tool-args  -reserveRegs=true  -march=arm -O0 | tee bugpoint.txt<br>
<br></div><div><br></div>My goal is duplication of almost all assembly instructions (for applying some fault-tolerant method), So, I need to reserve half of registers for those duplicated instructions.<br><br></div>regards,<br>
</div>Danna<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 2:43 PM, Quentin Colombet <span dir="ltr"><<a href="mailto:qcolombet@apple.com" target="_blank">qcolombet@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Danna,<br>
<div class=""><br>
On Jun 2, 2014, at 10:54 AM, Danna bib <<a href="mailto:danna1364@gmail.com">danna1364@gmail.com</a>> wrote:<br>
<br>
> Hello all,<br>
><br>
> I am working with LLVM 3.4. I reserved half of arm registers in order to do some optimization in backend (after register allocation). It works fine with several SPEC2006 benchmarks, but in some of them such as gcc and gobmk, I got the following error.<br>

> "LLVM ERROR: ran out of registers during register allocation"<br>
> So, my question is how I can solve that problem?<br>
<br>
</div>Without the input IR, this is hard to tell.<br>
Could you try to reduce a test case with bugpoint and we can try to help from here.<br>
<br>
The question though is why do you need to reserved so many registers?<br>
<br>
Thanks,<br>
-Quentin<br>
<div class=""><br>
><br>
> I would appreciate any advise you may have.<br>
><br>
> regards,<br>
> Danna<br>
</div>> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br>
</blockquote></div><br></div>