bjorn3 commented on issue #1168:
Removing the old style backends significantly improved compile tines for the meta crate. If I recall correctly it now only takes like 2s to compile.
fitzgen closed issue #1168:
This is especially a problem when building with opt-level=2, since cargo doesn't know to apply the optimization level only to target code, while cranelift-codegen-meta is host code.
Interestingly, the build time for the cranelift-codegen-meta is dominated by LLVM (80 to 90% of the time), mostly spent between multiple LLVM module passes, LTO passes and codegen passes.
This seems to be mostly caused by the size of
shared::instructions::defineandshared::legalize::define.Cc: @alexcrichton
fitzgen commented on issue #1168:
PRs to improve compilation times is always appreciated but we don't need to keep a generic "improve speed of compilation" issue open for more than six years especially when it isn't tracking a precise change that we could make and the crate has changed fairly significantly in the meantime and also we just had a couple PRs land that shaved off 25% of cranelift-codegen-meta build time.
Last updated: Aug 30 2026 at 09:07 UTC