[LLVMdev] Any way to disable a specific optimization on 'opt' command line
Eli Friedman
eli.friedman at gmail.com
Tue Nov 15 02:33:41 PST 2011
On Tue, Nov 15, 2011 at 2:16 AM, Seb <babslachem at gmail.com> wrote:
> 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.
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
hand.
-Eli
More information about the llvm-dev
mailing list