[LLVMdev] -O2, -O3 in JIT

Mark Shannon
Tue, 24 Feb 2009 14:10:46 -0000

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>