[PATCH] D144741: [OCaml] Completely remove legacy SCCP pass

Alan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 08:40:02 PST 2023


alan created this revision.
Herald added a project: All.
alan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This completely removes the SCCP pass in the OCaml bindings, fixing the build
and tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144741

Files:
  llvm/bindings/ocaml/transforms/scalar_opts/llvm_scalar_opts.ml
  llvm/test/Bindings/OCaml/scalar_opts.ml


Index: llvm/test/Bindings/OCaml/scalar_opts.ml
===================================================================
--- llvm/test/Bindings/OCaml/scalar_opts.ml
+++ llvm/test/Bindings/OCaml/scalar_opts.ml
@@ -60,7 +60,6 @@
            ++ add_lower_switch
            ++ add_memory_to_register_promotion
            ++ add_reassociation
-           ++ add_sccp
            ++ add_scalar_repl_aggregation
            ++ add_scalar_repl_aggregation_ssa
            ++ add_scalar_repl_aggregation_with_threshold 4
Index: llvm/bindings/ocaml/transforms/scalar_opts/llvm_scalar_opts.ml
===================================================================
--- llvm/bindings/ocaml/transforms/scalar_opts/llvm_scalar_opts.ml
+++ llvm/bindings/ocaml/transforms/scalar_opts/llvm_scalar_opts.ml
@@ -66,9 +66,6 @@
 external add_reassociation
   : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
   = "llvm_add_reassociation"
-external add_sccp
-  : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
-  = "llvm_add_sccp"
 external add_scalar_repl_aggregation
   : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
   = "llvm_add_scalar_repl_aggregates"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144741.500224.patch
Type: text/x-patch
Size: 1147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230224/659d2b24/attachment.bin>


More information about the llvm-commits mailing list