Seb
2011-Nov-15 10:16 UTC
[LLVMdev] 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 Sbb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111115/0a22e4ab/attachment.html>
Eli Friedman
2011-Nov-15 10:33 UTC
[LLVMdev] Any way to disable a specific optimization on 'opt' command line
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
Apparently Analagous Threads
- [LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
- [LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
- [LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
- [LLVMdev] Adding option to LLVM opt to disable a specific pass from command line
- [LLVMdev] Adding option to LLVM opt to disable a specific pass from command line