Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Jul 17, 2024
1 parent b79b824 commit 8aba8ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mm0-rs/components/mmcc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
5 changes: 3 additions & 2 deletions mm0-rs/components/mmcc/src/arch/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8aba8ac

Please sign in to comment.