[PATCH] D110908: [NPM] Automatic 'opt' pipeline reducer script.

Markus Lavin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 4 05:36:57 PDT 2021


markus added a comment.

In D110908#3039639 <https://reviews.llvm.org/D110908#3039639>, @fhahn wrote:

> Great to see progress on this! For a bit of extra convenience, it might be helpful to accept `-passes=defaults<O3>` & co and automatically translate that to  the explicit pass invocation.

One can always do e.g. `./utils/reduce_pipeline.py --opt-binary=../build-debug/bin/opt --input=bbi-60925.ll --output=test2.ll --passes=$(../build-debug/bin/opt -passes='default<O3>' -print-pipeline-passes -disable-output bbi-60925.ll)` but I agree that is a bit inconvenient and requires a bit of redundant typing.
Maybe it is worth it to have the script automatically invoke `opt` one time at the start to expand the pipeline with `-print-pipeline-passes`, if the pipeline is already expanded it should simply be an identity operation.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110908/new/

https://reviews.llvm.org/D110908



More information about the llvm-commits mailing list