Skip to content

Commit 187587f

Browse files
committed
SPIRV: don't optimize after byval conversion.
This pass runs before optimization now.
1 parent 753e9b1 commit 187587f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/spirv.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,5 @@ function wrap_byval(@nospecialize(job::CompilerJob), mod::LLVM.Module, f::LLVM.F
308308
unsafe_delete!(mod, f)
309309
LLVM.name!(new_f, fn)
310310

311-
# clean-up
312-
# NOTE: byval wrapping happens very late, after optimization
313-
@dispose pm=ModulePassManager() begin
314-
# merge GEPs
315-
instruction_combining!(pm)
316-
317-
# fold the entry bb into the rest of the function
318-
cfgsimplification!(pm)
319-
320-
run!(pm, mod)
321-
end
322-
323311
return new_f
324312
end

0 commit comments

Comments
 (0)