Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
clippy
  • Loading branch information
ShaharNaveh committed Jun 24, 2026
commit d8ae81f33d03b129c2f6484a2b731d5c7ecb5e7b
13 changes: 8 additions & 5 deletions crates/codegen/src/ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2308,6 +2308,7 @@ impl Blocks {

/// Mark exception handler target blocks.
/// flowgraph.c mark_except_handlers
#[allow(clippy::unnecessary_wraps)]
pub(crate) fn mark_except_handlers(&mut self) -> crate::InternalResult<()> {
#[cfg(debug_assertions)]
{
Expand Down Expand Up @@ -2409,11 +2410,13 @@ impl Blocks {
while let Some(block_idx) = cold_stack.pop() {
self[block_idx].cold = true;
let next = self[block_idx].next;
if next != BlockIdx::NULL && bb_has_fallthrough(&self[block_idx]) {
if !self[next].warm && !self[next].visited {
cold_stack.push(next);
self[next].visited = true;
}
if next != BlockIdx::NULL
&& bb_has_fallthrough(&self[block_idx])
&& !self[next].warm
&& !self[next].visited
{
cold_stack.push(next);
self[next].visited = true;
}

let instr_count = self[block_idx].instruction_used;
Expand Down
Loading