[LLVMdev] pbqp register allocator-need help

Smriti Jaiswal jaiswal.smriti at gmail.com
Mon Aug 12 00:05:31 PDT 2013


The simple C code on which im running the allocator is attached.
And these are the set of commands. I dont understand ..guess i might be
doing something very silly.
Please help

*Commands:*

clang -emit-llvm -c test.c -o test.bc
opt -mem2reg test.bc -o testssa.bc
llc -regalloc=pbqp testssa.bc


On Mon, Aug 12, 2013 at 7:59 AM, David Blaikie <dblaikie at gmail.com> wrote:

>
>
>
> On Sun, Aug 11, 2013 at 12:36 AM, Smriti Jaiswal <jaiswal.smriti at gmail.com
> > wrote:
>
>> Hello Sir,
>>
>> Im trying to test run pbqp register allocator for small C programs.
>>
>> by
>>
>> llc -regalloc=pbqp -debug <bitcode of the file>
>>
>> It is giving me segmentation fault for even very simple programs having
>> loops or if statements.
>> Please tell me where I'm going wrong.
>>
>
> Could you provide a specific example file (preferably a particularly
> simple one) that reproduces this problem? (along with the exact command
> line)
>
> 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.
>



-- 
Regards,
Smriti Jaiswal
MTech
Dept of Computer Science and Engg,
IIT Kanpur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130812/81735157/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 81 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130812/81735157/attachment.c>


More information about the llvm-dev mailing list