Any way to disable a specific optimization on 'opt' command line

Hi all,

Is there a way to disable use of specific optimization pass from opt at command line level ?
I would like to do something like:

opt -O2 -no-loop-idiom …

And I want to this to disable all invocations of loop-idom optimization, but keep all other -O2 opts.
Thanks for your help
Best Regards

No... probably not that hard to implement, though, if you want to look
into it. As a workaround, you can get a list of passes that run at
-O2 by passing -debug-pass=Arguments to opt, and edit the list by