[all-commits] [llvm/llvm-project] fb4113: [Passes] Remove legacy LoopUnswitch pass.

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Apr 29 02:31:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb4113ef0c8b2c5e5e2817e9ca14fb57a6d252be
      https://github.com/llvm/llvm-project/commit/fb4113ef0c8b2c5e5e2817e9ca14fb57a6d252be
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

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

  Log Message:
  -----------
  [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




More information about the All-commits mailing list