How do we disable the particular opt in llvm ?

Hi Everyone,

How do we particular disable optimization in llvm with -O2 enabled?

for example
“Interprocedural Sparse Conditional Constant Propagation”

Thank you

Hey Umesh!

How are you running the optimization passes here? Using the command line with opt? Using clang? Or are you using a PassManagerBuilder?


Hi Neil,
I’m using clang here.


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.