Skip to content

Commit de7fe09

Browse files
committed
Recommit "[LoopFlatten] Enable it by default"
The enablement of LoopFlatten got reverted by commit 8250180 because of a reported miscompilation in llvm#59339. That issue got fixed by commit 161bfa5.
1 parent d30f6bc commit de7fe09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Non-comprehensive list of changes in this release
4242
functionality, or simply have a lot to talk about), see the `NOTE` below
4343
for adding a new subsection.
4444
45-
* ...
45+
* The LoopFlatten pass is now enabled by default.
4646

4747
Update on required toolchains to build LLVM
4848
-------------------------------------------

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static cl::opt<bool> EnableUnrollAndJam("enable-unroll-and-jam",
205205
cl::init(false), cl::Hidden,
206206
cl::desc("Enable Unroll And Jam Pass"));
207207

208-
static cl::opt<bool> EnableLoopFlatten("enable-loop-flatten", cl::init(false),
208+
static cl::opt<bool> EnableLoopFlatten("enable-loop-flatten", cl::init(true),
209209
cl::Hidden,
210210
cl::desc("Enable the LoopFlatten Pass"));
211211

0 commit comments

Comments
 (0)