[PATCH] D108298: [WIP][NPM] Print '-passes' compatible string for built pipeline.

Markus Lavin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 18 06:16:51 PDT 2021


markus created this revision.
markus added reviewers: aeubanks, bjope.
Herald added subscribers: dexonsmith, hiraditya.
markus requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

In response to https://lists.llvm.org/pipermail/llvm-dev/2021-July/151987.html and what was discussed in that thread.

After some discussion with @bjope we agreed that doing this "static" approach seems better compared to actually running the pipeline on some input and gathering the information from the instrumentation callbacks.

Some examples

  $ ../build/bin/opt -O3 -o /dev/null ./test/Other/new-pm-defaults.ll
  -passes='verify,annotation2metadata,forceattrs,inferattrs,function(lower-expect,simplifycfg,sroa,early-cse,coro-early,callsite-splitting),openmp-opt,ipsccp,called-value-propagation,globalopt,function(mem2reg),deadargelim,function(instcombine,simplifycfg),inliner-wrapper,globalopt,globaldce,elim-avail-extern,rpo-function-attrs,function(float2int,lower-constant-intrinsics,loop(loop-rotate),loop-distribute,inject-tli-mappings,loop-vectorize,loop-load-elim,instcombine,simplifycfg,slp-vectorizer,vector-combine,instcombine,loop-unroll,transform-warning,instcombine,loop-mssa(licm),alignment-from-assumptions,loop-sink,instsimplify,div-rem-pairs,simplifycfg,coro-cleanup),cg-profile,globaldce,constmerge,rel-lookup-table-converter,function(annotation-remarks),verify'



  $ ../build/bin/opt -O1 -o /dev/null ./test/Other/new-pm-defaults.ll
  -passes='verify,annotation2metadata,forceattrs,inferattrs,function(lower-expect,simplifycfg,sroa,early-cse,coro-early),openmp-opt,ipsccp,called-value-propagation,globalopt,function(mem2reg),deadargelim,function(instcombine,simplifycfg),inliner-wrapper,globalopt,globaldce,elim-avail-extern,rpo-function-attrs,function(float2int,lower-constant-intrinsics,loop(loop-rotate),loop-distribute,inject-tli-mappings,loop-vectorize,loop-load-elim,instcombine,simplifycfg,vector-combine,instcombine,loop-unroll,transform-warning,instcombine,loop-mssa(licm),alignment-from-assumptions,loop-sink,instsimplify,div-rem-pairs,simplifycfg,coro-cleanup),cg-profile,globaldce,constmerge,rel-lookup-table-converter,function(annotation-remarks),verify'

Comments and feedback please. Would this work? Are there any obvious drawbacks?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108298

Files:
  llvm/include/llvm/IR/PassManager.h
  llvm/include/llvm/IR/PassManagerInternal.h
  llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
  llvm/lib/IR/PassManager.cpp
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Transforms/Scalar/LoopPassManager.cpp
  llvm/tools/opt/NewPMDriver.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108298.367188.patch
Type: text/x-patch
Size: 5503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210818/88337413/attachment.bin>


More information about the llvm-commits mailing list