[LLVMdev] -O2, -O3 in JIT

Mark Shannon marks at dcs.gla.ac.uk
Tue Feb 24 06:10:46 PST 2009


Hi,

Does anyone know an easy way to do same optimisations as 'opt -O2' or 'opt -O3' in the JIT.

I can do the tedious way:

  pass_manager->add(createInstructionCombiningPass());
  pass_manager->add(createGVNPass());
  etc.
  etc.

but I would rather reuse the code in 'opt' to manage the passes.

Cheers, 
Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090224/b6302dea/attachment.bin>


More information about the llvm-dev mailing list