Skip to content

Commit 00c7c44

Browse files
committed
fixup! Rewrite late optimization pipeline to NewPM
1 parent f6b9f6f commit 00c7c44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/compiler/optimize.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ function addOptimizationPasses!(mpm::LLVM.NewPMPassManager)
383383
# to simplification and deletion
384384
# this helps significantly with cleaning up iteration
385385
add!(fpm, SimplifyCFGPass())
386-
add!(fpm, LoopDeletionPass())
386+
add!(fpm, NewPMLoopPassManager()) do lpm
387+
add!(lpm, LoopDeletionPass())
388+
end
387389
add!(fpm, InstCombinePass())
388390
add!(fpm, JLInstSimplifyPass())
389391
add!(fpm, LoopVectorizePass())

0 commit comments

Comments
 (0)