Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/interop/newpm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import ..LLVM: pass_string, options_string, add!

@module_pass "CPUFeatures" CPUFeaturesPass
@module_pass "RemoveNI" RemoveNIPass
@module_pass "LowerSIMDLoop" LowerSIMDLoopPass
@static if VERSION < v"1.10.0-beta3.44"
@module_pass "LowerSIMDLoop" LowerSIMDLoopPass
end
@module_pass "RemoveJuliaAddrspaces" RemoveJuliaAddrspacesPass
@module_pass "RemoveAddrspaces" RemoveAddrspacesPass
@static if VERSION < v"1.11.0-DEV.208"
Expand Down Expand Up @@ -44,6 +46,9 @@ options_string(options::GCInvariantVerifierPassOptions) = options.strong ? "<str
@function_pass "GCInvariantVerifier" GCInvariantVerifierPass GCInvariantVerifierPassOptions

@loop_pass "JuliaLICM" JuliaLICMPass
@static if VERSION >= v"1.10.0-beta3.44"
@loop_pass "LowerSIMDLoop" LowerSIMDLoopPass
end

# The entire Julia pipeline
struct JuliaPipelinePassOptions
Expand Down
7 changes: 6 additions & 1 deletion test/newpm_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,14 @@ host_t = Target(triple=host_triple)
add!(fpm, EarlyCSEPass())
add!(fpm, AllocOptPass())
end
add!(mpm, LowerSIMDLoopPass())
@static if VERSION < v"1.10.0-beta3.44"
add!(mpm, LowerSIMDLoopPass())
end
add!(mpm, NewPMFunctionPassManager) do fpm
add!(fpm, NewPMLoopPassManager) do lpm
@static if VERSION >= v"1.10.0-beta3.44"
add!(mpm, LowerSIMDLoopPass())
end
add!(lpm, LoopRotatePass())
end
add!(fpm, NewPMLoopPassManager, #=UseMemorySSA=#true) do lpm
Expand Down