diff --git a/cubeai/src/lib.rs b/cubeai/src/lib.rs index 29aa6a1..0ede71c 100644 --- a/cubeai/src/lib.rs +++ b/cubeai/src/lib.rs @@ -182,9 +182,6 @@ impl CubeAi { let mut out = Vec::new(); match kind { BlockKind::Computation => { - // Suggest vectorizing a repeated multiply-by-constant: - // Mul(const) -> Const(shift?), but keep it conservative: - // replace Mul with a left-shift when operand is a power of two. out.push(Suggestion { rule: TranslationRule { name: format!("compute-opt:{:?}", block.label), @@ -240,6 +237,12 @@ impl CubeAi { } } +impl Default for CubeAi { + fn default() -> Self { + Self::new() + } +} + #[cfg(test)] mod tests { use super::*;