Felipe Sodré Silva
2010-Apr-13 17:09 UTC
[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
On Mon, Apr 12, 2010 at 12:39 AM, Duncan Sands <baldrick at free.fr> wrote:> > try something like this: > > llvm-gcc -c -emit-llvm -o - | opt ...list.transforms.here... > result.bc >Another question about it: is this transforms list applied in the same order it's given to the command line? Can I repeat a transformation pass within a list? Thanks you! Felipe -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100413/25e30315/attachment.html>
Devang Patel
2010-Apr-13 17:48 UTC
[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
On Tue, Apr 13, 2010 at 10:09 AM, Felipe Sodré Silva <fsodre at gmail.com> wrote:> On Mon, Apr 12, 2010 at 12:39 AM, Duncan Sands <baldrick at free.fr> wrote: >> >> try something like this: >> >> llvm-gcc -c -emit-llvm -o - | opt ...list.transforms.here... > result.bc > > Another question about it: is this transforms list applied in the same order > it's given to the command line?hmm.. yes. Use -debug-pass=... on the opt command line to see what is being executed. 'opt --help-hidden' lists -debug-pass and other hidden command line options.> Can I repeat a transformation pass within a > list?Yes! - Devang
Felipe Sodré Silva
2010-Apr-13 18:01 UTC
[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
On Tue, Apr 13, 2010 at 10:48 AM, Devang Patel <devang.patel at gmail.com>wrote:> hmm.. yes. Use -debug-pass=... on the opt command line to see what is > being executed. 'opt --help-hidden' lists -debug-pass and other hidden > command line options. > > > Can I repeat a transformation pass within a > > list? > > Yes! > > - > Devang >Great. Thanks everyone! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100413/52262def/attachment.html>
Duncan Sands
2010-Apr-13 19:02 UTC
[LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
Hi Felipe,> Another question about it: is this transforms list applied in the same > order it's given to the command line? Can I repeat a transformation pass > within a list?"opt -O2" gives you almost the same as "llvm-gcc -O2" etc. Ciao, Duncan.
Reasonably Related Threads
- [LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
- [LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
- [LLVMdev] Specifying a sequence of optimization flags on llvm-gcc
- [LLVMdev] Bug 1868: Specifying Pass Orderings
- [LLVMdev] [RFC] Module Flags Metadata