[LLVMdev] Polly test and example

Tobias Grosser grosser at fim.uni-passau.de
Thu Jun 9 21:25:33 PDT 2011


On 06/10/2011 12:00 AM, MORIYAMA Tomohiro wrote:
> H, Tobias
> Thank you for your reply.
>
>
> Tobias Grosser wrote:
>> Interesting. On what kind of Platform are you running this? Is it still
>> Ubuntu 11.04? I assume it's an intel platform, but is it a 32-bit or 64bit?
>
> It is a little bit complicated.
>
> Intel Core i5 M520.
> Ubuntu 11.04-i386 using VMWare Player on Windows 7 Professional(64bit).

So it's 32bit.

>>
>> The test cases that are failing are the ones that use 'lli' to execute
>> the generated program. There seems to be something wrong in respect to
>> lli. Can you run e.g. single_loop.ll with llvm-lit (-v) and show the
>> error message.
>
> OK. This is the message.
>
> --------
> tomohiro at ubuntu:~/llvm/tools/polly/test/CodeGen$ llvm-lit -v single_loop.ll
> llvm-lit: lit.cfg:94: note: using out-of-tree build at '/home/tomohiro/build/
> tools/polly'
> -- Testing: 1 tests, 2 threads --
> FAIL: Polly :: CodeGen/single_loop.ll (1 of 1)
> ******************** TEST 'Polly :: CodeGen/single_loop.ll' FAILED *************
> *******
> Script:
> --
> opt -load /home/tomohiro/build/lib/LLVMPolly.so   -basicaa -polly-prepare -polly
> -region-simplify -scev-aa  -polly-cloog -analyze<  /home/tomohiro/llvm/tools/
> polly/test/CodeGen/single_loop.ll | FileCheck /home/tomohiro/llvm/tools/polly/
> test/CodeGen/single_loop.ll
> opt -load /home/tomohiro/build/lib/LLVMPolly.so   -basicaa -polly-prepare -polly
> -region-simplify -scev-aa  -polly-codegen<  /home/tomohiro/llvm/tools/polly/test
> /CodeGen/single_loop.ll | lli -
> --
> Exit Code: 139
> Command Output (stderr):
> --
> Stack dump:
> 0.	Program arguments: lli -
> /home/tomohiro/build/tools/polly/test/CodeGen/Output/single_loop.ll.script: line
> 2:  3250 Done                    opt -load /home/tomohiro/build/lib/LLVMPolly.so
> -basicaa -polly-prepare -polly-region-simplify -scev-aa -polly-codegen<  /home/
> tomohiro/llvm/tools/polly/test/CodeGen/single_loop.ll
>        3251 Segmentation fault      | lli -


Interesting. It seems lli is segfaulting. Can you try to use the 
following command?

opt -load /home/tomohiro/build/lib/LLVMPolly.so \
  -basicaa -polly-prepare -polly-region-simplify -scev-aa \
  -polly-codegen \
  /home/tomohiro/llvm/tools/polly/test/CodeGen/single_loop.ll \
  | llc - out.s && gcc out.s && ./a.out

This means we do not run the created LLVM-IR file with the lli JIT 
compiler, but use the llc compiler and than gcc to statically compile 
the binary.

In case this does not work, I will investigate this on an i386 machine. 
All our development machines are amd64 machines and I must admit we did 
not test too much on i386. So issues on those machines are not too 
unexpected. Though Raghesh runs i386. He may have seen such a problem 
before.

Cheers and thanks for your report
Tobi





More information about the llvm-dev mailing list