Skip to content

Commit 276b134

Browse files
authored
Disable the vectorizer pipeline. (#516)
1 parent 75abbea commit 276b134

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/optim.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function buildNewPMPipeline!(mpm, @nospecialize(job::CompilerJob), opt_level=2)
3838
add!(mpm, NewPMFunctionPassManager) do fpm
3939
buildLoopOptimizerPipeline(fpm, job, opt_level)
4040
buildScalarOptimizerPipeline(fpm, job, opt_level)
41-
if opt_level >= 2
41+
if false && opt_level >= 2
42+
# XXX: we disable vectorization, as this generally isn't useful for GPU targets
43+
# and actually causes issues with some back-end compilers (like Metal).
4244
buildVectorPipeline(fpm, job, opt_level)
4345
end
4446
add!(fpm, WarnMissedTransformationsPass())

0 commit comments

Comments
 (0)