[LLVMdev] Decouple LoopVectorizer from O3

Reed Kotler rkotler at mips.com
Wed Apr 10 18:15:04 PDT 2013


I think that you can disable passes that have already been setup.

This avoids having to actually edit code to remove a pass.

You should be able do this in the TargetPassConfig class for your target.

On 04/10/2013 06:06 PM, Anadi Mishra wrote:
> Thanks for the suggestion Jim. I already tried to do it by 'opt' but it
> also requires O3. BTW I think that if I invoke 'opt' with
> '-vectorize-loops' option, it will figure out the passes required for LV
> since every pass mentions what other passes are prerequisite. Am I correct?
>
>
> Best,
> Anadi.
>
>
> On Thu, Apr 11, 2013 at 2:48 AM, Jim Grosbach <grosbach at apple.com
> <mailto:grosbach at apple.com>> wrote:
>
>     You can take unoptimized bitcode and run it through ‘opt’ to have
>     complete flexibility in which passes get run. It may take some
>     fiddling to find out the pass sequence and ordering that does what
>     you want, as some passes rely on previous passes to canonicaplize
>     code into a form it can effectively work with.
>
>     -Jim
>
>
>     On Apr 10, 2013, at 5:39 PM, Anadi Mishra <reachanadi at gmail.com
>     <mailto:reachanadi at gmail.com>> wrote:
>
>>     Hello,
>>
>>     I am trying out the LoopVectorizer(LV) pass and would like to
>>     decouple it from O3 which is currently required to run LV. I want
>>     to do this because I want to understand the behaviour of LV by
>>     trying simple loops but the O3 mostly optimises away the loop body.
>>
>>     Any ideas would be appreciated.
>>
>>     Best,
>>     Anadi.
>>     _______________________________________________
>>     LLVM Developers mailing list
>>     LLVMdev at cs.uiuc.edu
>>     <mailto:LLVMdev at cs.uiuc.edu>http://llvm.cs.uiuc.edu
>>     <http://llvm.cs.uiuc.edu/>
>>     http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>





More information about the llvm-dev mailing list