From 1c69a706116b443972f1c3e232a22437b3087d64 Mon Sep 17 00:00:00 2001 From: William Moses Date: Tue, 22 Oct 2024 16:03:29 -0700 Subject: [PATCH] Adapt to nightly [rm combinemuladd] (#2001) --- src/compiler/optimize.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/optimize.jl b/src/compiler/optimize.jl index a35de5608f..2a1ef49553 100644 --- a/src/compiler/optimize.jl +++ b/src/compiler/optimize.jl @@ -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 @@ -365,6 +366,7 @@ else return true end add!(pm, ModulePass("CombineMulAdd", combine_mul_add)) +end end end