From 8aba8acf9f524d8f4a0401f78dba1348a3a41f2b Mon Sep 17 00:00:00 2001 From: Mario Carneiro Date: Wed, 17 Jul 2024 03:51:45 +0200 Subject: [PATCH] fix --- mm0-rs/components/mmcc/Cargo.toml | 2 +- mm0-rs/components/mmcc/src/arch/x86/mod.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mm0-rs/components/mmcc/Cargo.toml b/mm0-rs/components/mmcc/Cargo.toml index 8519cce9..0931321f 100644 --- a/mm0-rs/components/mmcc/Cargo.toml +++ b/mm0-rs/components/mmcc/Cargo.toml @@ -27,7 +27,7 @@ bit-vec = "0.8" bit-set = "0.8" hashbrown = "0.14" typed-arena = "2.0" -# simplelog = "0.11" +# simplelog = "0.12" bumpalo = { version = "3.10", features = ["boxed", "collections"] } regalloc2 = "0.9" mm0_util = { path = "../mm0_util", default-features = false } diff --git a/mm0-rs/components/mmcc/src/arch/x86/mod.rs b/mm0-rs/components/mmcc/src/arch/x86/mod.rs index 26dd4cdd..b5e53c6f 100644 --- a/mm0-rs/components/mmcc/src/arch/x86/mod.rs +++ b/mm0-rs/components/mmcc/src/arch/x86/mod.rs @@ -1079,8 +1079,9 @@ impl VInst for Inst { } fn is_branch(&self) -> bool { - matches!(self, Inst::JmpCond {..} | Inst::JmpKnown {..}) - } + matches!(self, + Inst::Fallthrough {..} | Inst::Assert {..} | Inst::JmpKnown {..} | Inst::JmpCond {..}) +} fn branch_blockparams(&self, _: usize) -> &[regalloc2::VReg] { match self {