<div dir="ltr"><div><div><div><div>The simple C code on which im running the allocator is attached.<br></div><div>And these are the set of commands. I dont understand ..guess i might be doing something very silly. <br></div>
<div>Please help<br></div><div><br></div><u>Commands:</u><br><br></div>clang -emit-llvm -c test.c -o test.bc<br></div>opt -mem2reg test.bc -o testssa.bc<br></div>llc -regalloc=pbqp testssa.bc<br><div><div><div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Aug 12, 2013 at 7:59 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Sun, Aug 11, 2013 at 12:36 AM, Smriti Jaiswal <span dir="ltr"><<a href="mailto:jaiswal.smriti@gmail.com" target="_blank">jaiswal.smriti@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello Sir,<br><br></div>Im trying to test run pbqp register allocator for small C programs.<br>


<br></div>by <br><br></div>llc -regalloc=pbqp -debug <bitcode of the file><br><br></div>
It is giving me segmentation fault for even very simple programs having loops or if statements.<br clear="all"><div><div><div><div><div><div>Please tell me where I'm going wrong.</div></div></div></div></div></div></div>


</blockquote><div><br></div></div><div>Could you provide a specific example file (preferably a particularly simple one) that reproduces this problem? (along with the exact command line)<br><br>if you can repro this crash with C source and Clang, the Clang crash reporting mechanisms (it will provide a .sh and .i file & instruct you to attach those files to a bug report) are quite handy when reporting bugs. </div>


</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><font face="georgia, serif">Regards,</font><div><font face="georgia, serif">Smriti Jaiswal</font></div><div><font face="georgia, serif">MTech</font></div><div><font face="georgia, serif">Dept of Computer Science and Engg,</font></div>

<div><font face="georgia, serif">IIT Kanpur</font></div>
</div></div></div></div></div></div></div>