Skip to content

Commit

Permalink
Adapt to removal of CombineMulAdd pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Oct 22, 2024
1 parent 3445ea7 commit 50931ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/optim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ end
function buildCleanupPipeline(mpm, @nospecialize(job::CompilerJob), opt_level)
if opt_level >= 2
add!(mpm, NewPMFunctionPassManager()) do fpm
add!(fpm, CombineMulAddPass())
if VERSION < v"1.12.0-DEV.1390"
add!(fpm, CombineMulAddPass())
end
add!(fpm, DivRemPairsPass())
end
end
Expand Down

0 comments on commit 50931ad

Please sign in to comment.