Marcello Maggioni
2011-Oct-24 22:32 UTC
[LLVMdev] How to make Polly ignore some non-affine memory accesses
Strange , with --enable-shared (I use auto tool by the way ...) it gives: MacBook-Pro-di-Marcello:examples Kariddi$ ./compile_ex.sh not_so_simple_loop clang (LLVM option parsing): Unknown command line argument '-enable-polly-viewer'. Try: 'clang (LLVM option parsing) -help' clang (LLVM option parsing): Did you mean '-enable-polly-vector'? Seems like it doesn't compile the viewer option ... 2011/10/24 Marcello Maggioni <hayarms at gmail.com>:> It works!! :) > > I'll try also enable-shared , to see if it's possible to use it > without the patch and report > > 2011/10/24 Tobias Grosser <tobias at grosser.es>: >> On 10/23/2011 02:31 PM, Tobias Grosser wrote: >>> >>> On 10/22/2011 08:41 AM, Marcello Maggioni wrote: >> >> [..] >>>> >>>> Seems like it tries to load a symbol that it doesn't find ... >>>> I have synchronized all clang/llvm/polly to the latest version and I >>>> compiled them all together. Loading polly with "opt" works strangely >>>> ... : >>>> >>>> opt -S -load ${PATH_TO_POLLY_LIB}/LLVMPolly.dylib -mem2reg -no-aa >>>> -targetlibinfo -tbaa -basicaa -preverify -domtree -verify -mem2reg >>>> -instcombine -simplifycfg -tailcallelim -simplifycfg -reassociate >>>> -domtree -loops -loop-simplify -lcssa -loop-rotate -instcombine >>>> -scalar-evolution -loop-simplify -lcssa -indvars -polly-prepare >>>> -postdomtree -domfrontier -regions -polly-region-simplify >>>> -scalar-evolution -loop-simplify -lcssa -indvars -postdomtree >>>> -domfrontier -regions -loop-simplify -indvars -enable-iv-rewrite >>>> not_so_simple_loop.s >>>> >>>> strange ... >>> >>> Very strange. I have seen such problems previously and they were often >>> related to enabling rtti (runtime type info) or exceptions in Polly, but >>> no clang or the other way around. I am not sure if this is the case her. >>> >>> Another possibility is that clang does not use the RegionInfo stuff and >>> it gets dead code eliminated. >> >> I am even more convinced this is the case. Can you try the attached patch >> and report if it works for you? >> >> Cheers >> Tobi >> >
Marcello Maggioni
2011-Oct-27 00:15 UTC
[LLVMdev] How to make Polly ignore some non-affine memory accesses
Perfect, thank you very much :) 2011/10/26 Tobias Grosser <tobias at grosser.es>:> On 10/24/2011 11:32 PM, Marcello Maggioni wrote: >> >> Strange , with --enable-shared (I use auto tool by the way ...) it gives: >> >> MacBook-Pro-di-Marcello:examples Kariddi$ ./compile_ex.sh >> not_so_simple_loop >> clang (LLVM option parsing): Unknown command line argument >> '-enable-polly-viewer'. Try: 'clang (LLVM option parsing) -help' >> clang (LLVM option parsing): Did you mean '-enable-polly-vector'? >> >> Seems like it doesn't compile the viewer option ... > > This error message is because the option name was changed. Try -polly-show. > > Furthermore, I plan to commit the change to clang, that solves the failure > when loading clang. Though it will probably take a day until it gets through > review. > > Cheers > Tobi >
Maybe Matching Threads
- [LLVMdev] How to make Polly ignore some non-affine memory accesses
- [LLVMdev] How to make Polly ignore some non-affine memory accesses
- [LLVMdev] How to make Polly ignore some non-affine memory accesses
- [LLVMdev] How to make Polly ignore some non-affine memory accesses
- [LLVMdev] How to make Polly ignore some non-affine memory accesses