Skip to content

Commit

Permalink
early break in cfg.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed Mar 7, 2024
1 parent ea86b87 commit d72ad87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ impl CFGInfo {
let preds = f.block_preds(succ).len() + if succ == f.entry_block() { 1 } else { 0 };
if preds > 1 {
require_no_branch_args = true;
break;
}
}
if require_no_branch_args {
Expand Down

0 comments on commit d72ad87

Please sign in to comment.