<div dir="ltr"><div><div><div><div>It was suggested that I could get a list of optimizations that would be applied given a -ON option as follows:<br><br> $TG_BIN/opt -O2 -disable-output -debug-pass=Arguments some.bc<br><br></div>(for -O2 in this case).<br><br>The list that it returned (after removing duplicates) was:<br></div><br>-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 <br><br></div>However... when I then tried pass these to opt I get:<br><br>opt: Unknown command line argument '-basictti'.  Try: '/home/ptomson/tg/tg/install/bin/opt -help'<br>opt: Did you mean '-basiccg'?<br>opt: Unknown command line argument '-verify-di'.  Try: '/home/ptomson/tg/tg/install/bin/opt -help'<br>opt: Did you mean '-verify'?<br><br><br></div>Why is it that I'm getting non-valid optimization arguments returned from: <br>$TG_BIN/opt -O2 -disable-output -debug-pass=Arguments some.bc<br><br>?<br><br><div><div><br><br></div></div></div>