[llvm-dev] How do we disable the particular opt in llvm ?

Johannes Doerfert via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 26 12:48:25 PDT 2020


Not all passes have an "off switch". As far as I can tell, (IP)SCCP does 
not have one.

We can, probably should, add those to all passes though.



On 6/26/20 2:02 PM, Umesh Kalappa via llvm-dev wrote:
> Hi Neil,
> I'm using clang here.
>
> Umesh
>
> On Fri, Jun 26, 2020, 20:44 Neil Henning <neil.henning at unity3d.com> wrote:
>
>> Hey Umesh!
>>
>> How are you running the optimization passes here? Using the command line
>> with opt? Using clang? Or are you using a PassManagerBuilder?
>>
>> Cheers,
>> -Neil.
>>
>> On Fri, Jun 26, 2020 at 3:06 PM Umesh Kalappa via llvm-dev <
>> llvm-dev at lists.llvm.org> wrote:
>>
>>> Hi Everyone,
>>>
>>> How do we particular  disable optimization in llvm with -O2 enabled?
>>>
>>> for example
>>>   "Interprocedural Sparse Conditional Constant Propagation"
>>>
>>> Thank you
>>> ~Umesh
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> llvm-dev at lists.llvm.org
>>> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>>
>>
>> --
>> Neil Henning
>> Senior Software Engineer Compiler
>> unity.com
>>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200626/5a515293/attachment.html>


More information about the llvm-dev mailing list