[sledge] fix only-needed

Reviewed By: jberdine

Differential Revision: D15420742

fbshipit-source-id: 7332f849d
master
Timotej Kapus 6 years ago committed by Facebook Github Bot
parent cb6d02fe32
commit 22acf72936

@ -16,7 +16,7 @@ Jbuild_plugin.V1.send
(name llair_) (name llair_)
(public_name llair) (public_name llair)
%s %s
(libraries ctypes ctypes.foreign llvm llvm.irreader llvm.analysis llvm.scalar_opts llvm.target %s)) (libraries ctypes ctypes.foreign llvm llvm.irreader llvm.analysis llvm.scalar_opts llvm.target llvm.ipo %s))
|} |}
(flags `lib deps) (flags `lib deps)
(libraries deps) (libraries deps)

@ -1335,6 +1335,7 @@ let xlate_function : x -> Llvm.llvalue -> Llair.func =
let transform : Llvm.llmodule -> unit = let transform : Llvm.llmodule -> unit =
fun llmodule -> fun llmodule ->
let pm = Llvm.PassManager.create () in let pm = Llvm.PassManager.create () in
Llvm_ipo.add_global_dce pm ;
Llvm_scalar_opts.add_lower_atomic pm ; Llvm_scalar_opts.add_lower_atomic pm ;
Llvm_scalar_opts.add_scalar_repl_aggregation pm ; Llvm_scalar_opts.add_scalar_repl_aggregation pm ;
Llvm_scalar_opts.add_scalarizer pm ; Llvm_scalar_opts.add_scalarizer pm ;

Loading…
Cancel
Save