Skip to content

Commit ac3bd2b

Browse files
authored
[LoopReroll] Remove unused and unmaintained pass (#80972)
Remove the LoopReroll pass, which is both unused (in any default pipeline) and unmaintained, with numerous open correctness issues (https://github.com/llvm/llvm-project/issues?q=is%3Aissue+is%3Aopen+loop-reroll). The removal is in line with https://discourse.llvm.org/t/rfc-disallow-unmaintained-unused-passes/75151. There is also a defunct `-freroll-loops` option in clang, which I'll remove separately. Migrated from https://reviews.llvm.org/D150684.
1 parent 02362b1 commit ac3bd2b

16 files changed

+0
-4456
lines changed

llvm/include/llvm/Transforms/Scalar/LoopReroll.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

llvm/lib/Passes/PassBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@
216216
#include "llvm/Transforms/Scalar/LoopLoadElimination.h"
217217
#include "llvm/Transforms/Scalar/LoopPassManager.h"
218218
#include "llvm/Transforms/Scalar/LoopPredication.h"
219-
#include "llvm/Transforms/Scalar/LoopReroll.h"
220219
#include "llvm/Transforms/Scalar/LoopRotation.h"
221220
#include "llvm/Transforms/Scalar/LoopSimplifyCFG.h"
222221
#include "llvm/Transforms/Scalar/LoopSink.h"

llvm/lib/Passes/PassRegistry.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,6 @@ LOOP_PASS("loop-idiom", LoopIdiomRecognizePass())
599599
LOOP_PASS("loop-instsimplify", LoopInstSimplifyPass())
600600
LOOP_PASS("loop-predication", LoopPredicationPass())
601601
LOOP_PASS("loop-reduce", LoopStrengthReducePass())
602-
LOOP_PASS("loop-reroll", LoopRerollPass())
603602
LOOP_PASS("loop-simplifycfg", LoopSimplifyCFGPass())
604603
LOOP_PASS("loop-unroll-full", LoopFullUnrollPass())
605604
LOOP_PASS("loop-versioning-licm", LoopVersioningLICMPass())

llvm/lib/Transforms/Scalar/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ add_llvm_component_library(LLVMScalarOpts
4040
LoopLoadElimination.cpp
4141
LoopPassManager.cpp
4242
LoopPredication.cpp
43-
LoopRerollPass.cpp
4443
LoopRotation.cpp
4544
LoopSimplifyCFG.cpp
4645
LoopStrengthReduce.cpp

0 commit comments

Comments
 (0)