[llvm-dev] Getting a list of optimiztions to be applied from opt
Phil Tomson via llvm-dev
llvm-dev at lists.llvm.org
Mon Dec 7 12:58:48 PST 2015
It was suggested that I could get a list of optimizations that would be
applied given a -ON option as follows:
$TG_BIN/opt -O2 -disable-output -debug-pass=Arguments some.bc
(for -O2 in this case).
The list that it returned (after removing duplicates) was:
-datalayout -notti -basictti -no-aa -tbaa -scoped-noalias
-assumption-cache-tracker -targetlibinfo -basicaa -verify -simplifycfg
-domtree -sroa -early-cse -lower-expect -verify-di -ipsccp -globalopt
-deadargelim -instcombine -basiccg -prune-eh -inline-cost -inline
-functionattrs -lazy-value-info -jump-threading -correlated-propagation
-tailcallelim -reassociate -loops -loop-simplify -lcssa -loop-rotate -licm
-loop-unswitch -scalar-evolution -indvars -loop-idiom -loop-deletion
-function_tti -loop-unroll -memdep -mldst-motion -gvn -memcpyopt -sccp -dse
-adce -barrier -branch-prob -block-freq -loop-vectorize -slp-vectorizer
-alignment-from-assumptions -strip-dead-prototypes -globaldce -constmerge
However... when I then tried pass these to opt I get:
opt: Unknown command line argument '-basictti'. Try:
'/home/ptomson/tg/tg/install/bin/opt -help'
opt: Did you mean '-basiccg'?
opt: Unknown command line argument '-verify-di'. Try:
'/home/ptomson/tg/tg/install/bin/opt -help'
opt: Did you mean '-verify'?
Why is it that I'm getting non-valid optimization arguments returned from:
$TG_BIN/opt -O2 -disable-output -debug-pass=Arguments some.bc
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151207/87d5f8b0/attachment.html>
More information about the llvm-dev
mailing list