[PATCH] D112036: [opt] Directly translate -O# to -passes='default<O#>'
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 18 15:49:35 PDT 2021
aeubanks created this revision.
aeubanks added a reviewer: asbirlea.
Herald added subscribers: ormris, kerbowa, zzheng, nhaehnle, jvesely, nemanjai, jholewinski.
Herald added a reviewer: ctetreau.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Right now when we see -O# we add the corresponding 'default<O#>' into
the list of passes to run when translating legacy -pass-name. This has
the side effect of not using the default AA pipeline.
Instead, treat -O# as -passes='default<O#>', but don't allow any other
-passes or -pass-name. I think we can keep `opt -O#` as shorthand for
`opt -passes='default<O#>` but disallow anything more than just -O#.
Tests need to be updated to not use `opt -O# -pass-name`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112036
Files:
llvm/test/CodeGen/AMDGPU/extra-sroa-after-unroll.ll
llvm/test/CodeGen/AMDGPU/r600.amdgpu-alias-analysis.ll
llvm/test/CodeGen/NVPTX/nvvm-reflect-arch.ll
llvm/test/CodeGen/NVPTX/nvvm-reflect.ll
llvm/test/Instrumentation/MemorySanitizer/msan_llvm_launder_invariant.ll
llvm/test/Instrumentation/MemorySanitizer/msan_llvm_strip_invariant.ll
llvm/test/Other/opt-On.ll
llvm/test/Transforms/GlobalOpt/long-compilation-global-sra.ll
llvm/test/Transforms/Inline/devirtualize-3.ll
llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll
llvm/test/Transforms/LoopVectorize/PowerPC/widened-massv-call.ll
llvm/test/Transforms/LoopVectorize/X86/float-induction-x86.ll
llvm/test/Transforms/LoopVectorize/X86/metadata-enable.ll
llvm/test/Transforms/LoopVectorize/X86/x86_fp80-vector-store.ll
llvm/test/Transforms/LoopVectorize/global_alias.ll
llvm/test/Transforms/LoopVersioningLICM/loopversioningLICM3.ll
llvm/test/Transforms/LoopVersioningLICM/metadata.ll
llvm/test/Transforms/MergeFunc/mergefunc-preserve-debug-info.ll
llvm/tools/opt/opt.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112036.380535.patch
Type: text/x-patch
Size: 17903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211018/8aca992d/attachment.bin>
More information about the llvm-commits
mailing list