Skip to content

Commit 352758d

Browse files
committed
fixup! LICM requires memory_ssa
1 parent 209f0d3 commit 352758d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/optimize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function addOptimizationPasses!(mpm::LLVM.NewPMPassManager)
182182
# remove those before optimizing loops.
183183
add!(fpm, AllocOptPass())
184184

185-
add!(fpm, NewPMLoopPassManageruse(use_memory_ssa=true)) do lpm
185+
add!(fpm, NewPMLoopPassManager(use_memory_ssa=true)) do lpm
186186
add!(lpm, LoopRotatePass())
187187
# moving IndVarSimplify here prevented removing the loop in perf_sumcartesian(10:-1:1)
188188
add!(lpm, LoopIdiomRecognizePass())

0 commit comments

Comments
 (0)