@@ -50,8 +50,8 @@ function pipeline_options(;
5050    enable_vector_pipeline:: Bool  =  true ,
5151    remove_ni:: Bool  =  true ,
5252    cleanup:: Bool  =  true ,
53-     Size:: Cint  =  0 ,
54-     Speedup:: Cint  =  3 ,
53+     Size:: Cint  =  Cint ( 0 ) ,
54+     Speedup:: Cint  =  Cint ( 3 ) ,
5555)
5656    return  PipelineConfig (
5757        Speedup,
@@ -872,6 +872,35 @@ function post_optimize!(mod::LLVM.Module, tm::LLVM.TargetMachine, machine::Bool
872872            run! (pb, mod, tm)
873873        end 
874874    end 
875+     #  Wanted to use this but julia_pipeline is not ready for prime time
876+     #  @dispose pb = NewPMPassBuilder() begin
877+     #      registerEnzymeAndPassPipeline!(pb)
878+     #      register!(pb, ReinsertGCMarkerPass())
879+ 
880+     #      add!(pb, NewPMModulePassManager()) do mpm
881+     #          if machine
882+     #              add!(mpm, NewPMFunctionPassManager()) do fpm
883+     #                  add!(fpm, ReinsertGCMarkerPass())
884+     #              end
885+     #          end
886+ 
887+     #          julia_pipeline(pb, mpm;
888+     #              lower_intrinsics = machine,
889+     #              dump_native = false,
890+     #              external_use = false,
891+     #              llvm_only = false,
892+     #              always_inline = true,
893+     #              enable_early_simplifications = true,
894+     #              enable_early_optimizations = true,
895+     #              enable_scalar_optimizations = true,
896+     #              enable_loop_optimizations = true,
897+     #              enable_vector_pipeline = true,
898+     #              remove_ni = true,
899+     #              cleanup = true,
900+     #          )
901+     #      end
902+     #      run!(pb, mod, tm)
903+     #  end
875904    for  f in  functions (mod)
876905	if  isempty (blocks (f))
877906		continue 
0 commit comments