[LLVMdev] Manipulate order of optimizations in llvm-ld
sabre at nondot.org
Mon Sep 18 10:21:31 PDT 2006
On Mon, 18 Sep 2006, Bram Adams wrote:
> I've written a couple of passes, and I intend to use them using llvm-ld
> (loading works fine). However, I can't seem to figure out how to put
> them first, i.e. before all other optimizations (inlining,
> internalizing, ... should only kick in after my passes).
> Omitting AnalysisUsage::setPreservesAll() doesn't help and there is no
> AnalysisUsage::invalidateAll(). Does anybody know a workaround?
One solution is to use gccld/llvm-ld with the -disable-opt option, then
run a completely custom series of passes with "opt".
More information about the llvm-dev