[PATCH] D124376: [Passes] Remove legacy LoopUnswitch pass.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 03:49:40 PDT 2022


fhahn created this revision.
fhahn added reviewers: aeubanks, Meinersbur, nikic, asbirlea.
Herald added a reviewer: deadalnix.
Herald added subscribers: ormris, kerbowa, george.burgess.iv, hiraditya, mgorny, jvesely.
Herald added a reviewer: bollu.
Herald added a project: All.
fhahn requested review of this revision.
Herald added a project: LLVM.

The legacy LoopUnswitch pass is only used in the legacy pass manager
pipeline, which is deprecated.

The NewPM replacement is SimpleLoopUnswitch and I think it is time to
remove the legacy LoopUnswitch code.

After replacing the LoopUnswitch with SimpleLoopUnswitch in Polly's
CodeGenCleanup.cpp, there is one polly test failing. @Meinersbur is
updating the test the right way forward here?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124376

Files:
  llvm/include/llvm-c/Transforms/Scalar.h
  llvm/include/llvm/LinkAllPasses.h
  llvm/include/llvm/Transforms/Scalar.h
  llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
  llvm/lib/Transforms/Scalar/CMakeLists.txt
  llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
  llvm/lib/Transforms/Scalar/Scalar.cpp
  llvm/test/Analysis/MemorySSA/pr40038.ll
  llvm/test/Feature/optnone-opt.ll
  llvm/test/Transforms/LoopUnswitch/2006-06-13-SingleEntryPHI.ll
  llvm/test/Transforms/LoopUnswitch/2006-06-27-DeadSwitchCase.ll
  llvm/test/Transforms/LoopUnswitch/2007-05-09-Unreachable.ll
  llvm/test/Transforms/LoopUnswitch/2007-05-09-tl.ll
  llvm/test/Transforms/LoopUnswitch/2007-07-12-ExitDomInfo.ll
  llvm/test/Transforms/LoopUnswitch/2007-07-13-DomInfo.ll
  llvm/test/Transforms/LoopUnswitch/2007-07-18-DomInfo.ll
  llvm/test/Transforms/LoopUnswitch/2007-08-01-Dom.ll
  llvm/test/Transforms/LoopUnswitch/2007-08-01-LCSSA.ll
  llvm/test/Transforms/LoopUnswitch/2007-10-04-DomFrontier.ll
  llvm/test/Transforms/LoopUnswitch/2008-06-02-DomInfo.ll
  llvm/test/Transforms/LoopUnswitch/2008-06-17-DomFrontier.ll
  llvm/test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll
  llvm/test/Transforms/LoopUnswitch/2010-11-18-LCSSA.ll
  llvm/test/Transforms/LoopUnswitch/2011-06-02-CritSwitch.ll
  llvm/test/Transforms/LoopUnswitch/2011-09-26-EHCrash.ll
  llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll
  llvm/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll
  llvm/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches.ll
  llvm/test/Transforms/LoopUnswitch/2012-04-02-IndirectBr.ll
  llvm/test/Transforms/LoopUnswitch/2012-04-30-LoopUnswitch-LPad-Crash.ll
  llvm/test/Transforms/LoopUnswitch/2012-05-20-Phi.ll
  llvm/test/Transforms/LoopUnswitch/2015-06-17-Metadata.ll
  llvm/test/Transforms/LoopUnswitch/2015-09-18-Addrspace.ll
  llvm/test/Transforms/LoopUnswitch/AMDGPU/divergent-unswitch.ll
  llvm/test/Transforms/LoopUnswitch/AMDGPU/lit.local.cfg
  llvm/test/Transforms/LoopUnswitch/AMDGPU/uniform-unswitch.ll
  llvm/test/Transforms/LoopUnswitch/LIV-loop-condtion.ll
  llvm/test/Transforms/LoopUnswitch/basictest.ll
  llvm/test/Transforms/LoopUnswitch/callbr.ll
  llvm/test/Transforms/LoopUnswitch/cleanuppad.ll
  llvm/test/Transforms/LoopUnswitch/convergent-hoist-modified.ll
  llvm/test/Transforms/LoopUnswitch/copy-metadata.ll
  llvm/test/Transforms/LoopUnswitch/crash.ll
  llvm/test/Transforms/LoopUnswitch/elseif-non-exponential-behavior.ll
  llvm/test/Transforms/LoopUnswitch/exponential-behavior.ll
  llvm/test/Transforms/LoopUnswitch/guards.ll
  llvm/test/Transforms/LoopUnswitch/infinite-loop.ll
  llvm/test/Transforms/LoopUnswitch/invalidate-scev.ll
  llvm/test/Transforms/LoopUnswitch/invoke-hoist-modified.ll
  llvm/test/Transforms/LoopUnswitch/msan.ll
  llvm/test/Transforms/LoopUnswitch/optsize-hoist-modified.ll
  llvm/test/Transforms/LoopUnswitch/partial-unswitch-cost.ll
  llvm/test/Transforms/LoopUnswitch/partial-unswitch-mssa-threshold.ll
  llvm/test/Transforms/LoopUnswitch/partial-unswitch-update-memoryssa.ll
  llvm/test/Transforms/LoopUnswitch/partial-unswitch.ll
  llvm/test/Transforms/LoopUnswitch/pr32818.ll
  llvm/test/Transforms/LoopUnswitch/preserve-analyses.ll
  llvm/test/Transforms/LoopUnswitch/simplify-with-nonvalness.ll
  llvm/test/Transforms/LoopUnswitch/trivial-unswitch.ll
  llvm/test/Transforms/LoopUnswitch/unswitch-equality-undef.ll
  llvm/test/Transforms/LoopUnswitch/unswitch-select.ll
  polly/lib/CodeGen/CodegenCleanup.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124376.424862.patch
Type: text/x-patch
Size: 235412 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220425/55b8cc3a/attachment-0001.bin>


More information about the llvm-commits mailing list