improve comment on llvm_passes

This commit is contained in:
Luke Boswell 2024-08-05 10:36:59 +10:00
parent f28ddea805
commit 12e8710f4f
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0

View file

@ -1,6 +1,9 @@
use roc_mono::ir::OptLevel;
// generated using "opt --passes="default<Oz>" --print-pipeline-passes example.ll"
//
// we also include a "globaldce" pass at the beggining of each pipeline here, which is required
// to prevent bugs with the surgical linker, and also improves the build time.
pub fn get_llvm_passes_str(opt_level: OptLevel) -> &'static str {
match opt_level {
OptLevel::Development | OptLevel::Normal => {