Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ykrt/src/compile/j2/opt/fullopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ use crate::compile::{
CompilationError,
j2::{
hir::*,
opt::{EquivIIdxT, OptT, cse::CSE, load_store::LoadStore, strength_fold::StrengthFold},
opt::{
EquivIIdxT, OptT, cse::CSE, known_bits::KnownBits, load_store::LoadStore,
strength_fold::StrengthFold,
},
},
};
use index_vec::*;
Expand All @@ -108,14 +111,15 @@ use std::collections::HashMap;

pub(in crate::compile::j2) struct FullOpt {
/// The ordered set of optimisation passes that all instructions will be fed through.
passes: [Box<dyn PassT>; 3],
passes: [Box<dyn PassT>; 4],
inner: OptInternal,
}

impl FullOpt {
pub(in crate::compile::j2) fn new() -> Self {
Self {
passes: [
Box::new(KnownBits::new()),
Box::new(StrengthFold::new()),
Box::new(LoadStore::new()),
Box::new(CSE::new()),
Expand Down
Loading