[Passes] Remove legacy LoopUnswitch pass.
authorFlorian Hahn <flo@fhahn.com>
Fri, 29 Apr 2022 09:30:49 +0000 (10:30 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 29 Apr 2022 09:30:49 +0000 (10:30 +0100)
commitfb4113ef0c8b2c5e5e2817e9ca14fb57a6d252be
treeb0cbfe9b1b81e974d22d9f5278558dabc81a6fe3
parent6c44e398ecdc5ad46ada7b37c68cfbe5e7fc9a94
[Passes] Remove legacy LoopUnswitch pass.

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.

Fixes #31000.

Reviewed By: aeubanks, Meinersbur, asbirlea

Differential Revision: https://reviews.llvm.org/D124376
62 files changed:
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 [deleted file]
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 [deleted file]
llvm/test/Transforms/LoopUnswitch/2006-06-27-DeadSwitchCase.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2007-05-09-Unreachable.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2007-05-09-tl.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2007-07-12-ExitDomInfo.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2007-07-13-DomInfo.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2007-07-18-DomInfo.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2007-08-01-Dom.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2007-08-01-LCSSA.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2007-10-04-DomFrontier.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2008-06-02-DomInfo.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2008-06-17-DomFrontier.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2008-11-03-Invariant.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2010-11-18-LCSSA.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2011-06-02-CritSwitch.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2011-09-26-EHCrash.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches-Threshold.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2011-11-18-TwoSwitches.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2012-04-02-IndirectBr.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2012-04-30-LoopUnswitch-LPad-Crash.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2012-05-20-Phi.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2015-06-17-Metadata.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/2015-09-18-Addrspace.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/AMDGPU/divergent-unswitch.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/AMDGPU/lit.local.cfg [deleted file]
llvm/test/Transforms/LoopUnswitch/AMDGPU/uniform-unswitch.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/LIV-loop-condtion.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/basictest.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/callbr.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/cleanuppad.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/convergent-hoist-modified.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/copy-metadata.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/crash.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/elseif-non-exponential-behavior.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/exponential-behavior.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/guards.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/infinite-loop.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/invalidate-scev.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/invoke-hoist-modified.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/msan.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/optsize-hoist-modified.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/partial-unswitch-cost.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/partial-unswitch-mssa-threshold.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/partial-unswitch-update-memoryssa.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/partial-unswitch.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/pr32818.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/preserve-analyses.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/simplify-with-nonvalness.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/trivial-unswitch.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/unswitch-equality-undef.ll [deleted file]
llvm/test/Transforms/LoopUnswitch/unswitch-select.ll [deleted file]
polly/lib/CodeGen/CodegenCleanup.cpp