[PATCH] D105933: [NewPM][SimpleLoopUnswitch] Add option to not trivially unswitch

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 13 12:53:19 PDT 2021


aeubanks created this revision.
aeubanks added a reviewer: asbirlea.
Herald added subscribers: ormris, hiraditya.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

To help with debugging non-trivial unswitching issues.

Don't care about the legacy pass, nobody is using it.

If a pass's string params are empty (e.g. "simple-loop-unswitch"), don't
default to the empty constructor for the pass params. We should still
let the parser take care of it in case the parser has its own defaults.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105933

Files:
  llvm/include/llvm/Transforms/Scalar/SimpleLoopUnswitch.h
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  llvm/test/Other/print-passes.ll
  llvm/test/Transforms/SimpleLoopUnswitch/options.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105933.358398.patch
Type: text/x-patch
Size: 6261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210713/ef7acc43/attachment.bin>


More information about the llvm-commits mailing list