opt-lang 0.3.0

SSA optimization passes for ir-lang: sparse conditional constant propagation, value numbering, dead-code elimination, CFG simplification, copy propagation, and loop-invariant code motion.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "opt-lang"
version = "0.3.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SSA optimization passes for ir-lang: sparse conditional constant propagation, value numbering, dead-code elimination, CFG simplification, copy propagation, and loop-invariant code motion."
homepage = "https://github.com/jamesgober/opt-lang"
documentation = "https://docs.rs/opt-lang"
readme = "README.md"
keywords = [
    "optimizer",
    "ssa",
    "compiler",
    "ir",
    "lexersketch",
]
categories = [
    "compilers",
    "no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/opt-lang"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["std"]
std = [
    "ir-lang/std",
    "pass-lang/std",
]

[lib]
name = "opt_lang"
path = "src/lib.rs"

[[example]]
name = "optimize"
path = "examples/optimize.rs"

[[example]]
name = "pipeline"
path = "examples/pipeline.rs"

[[example]]
name = "variables"
path = "examples/variables.rs"

[[test]]
name = "differential"
path = "tests/differential.rs"

[[test]]
name = "gc"
path = "tests/gc.rs"

[[test]]
name = "hostile"
path = "tests/hostile.rs"

[[test]]
name = "passes"
path = "tests/passes.rs"

[[test]]
name = "scale"
path = "tests/scale.rs"

[[test]]
name = "variables"
path = "tests/variables.rs"

[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false

[dependencies.ir-lang]
version = "=2.0.0-alpha.3"
default-features = false

[dependencies.pass-lang]
version = "1"
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.ir-lang]
version = "=2.0.0-alpha.3"
features = ["interp"]

[dev-dependencies.proptest]
version = "1"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"