Skip to content

Commit

Permalink
Adapt to nightly [rm combinemuladd] (#2001)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Oct 22, 2024
1 parent db78d0a commit 1c69a70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/optimize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ end
end
else
function combine_mul_add_tm!(pm, tm)
@static if VERSION < v"1.12.0-DEV.1390"
function combine_mul_add(mod)
@dispose pb = NewPMPassBuilder() begin
add!(pb, NewPMModulePassManager()) do mpm
Expand All @@ -365,6 +366,7 @@ else
return true
end
add!(pm, ModulePass("CombineMulAdd", combine_mul_add))
end
end
end

Expand Down

0 comments on commit 1c69a70

Please sign in to comment.