Skip to content

Commit

Permalink
#258 apply upstream fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Jun 15, 2024
1 parent aacdd17 commit 2c6f95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mir/mir-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -6131,7 +6131,7 @@ static int consider_move_vars_only (gen_ctx_t gen_ctx) {
bitmap_clear (temp_bitmap);
scan_vars_num = 0;
scan_collected_moves (gen_ctx);
return scan_vars_num > 0;
return scan_vars_num > 0 && scan_vars_num < MIR_MAX_COALESCE_VARS;
}

static void add_bb_insn_dead_vars (gen_ctx_t gen_ctx) {
Expand Down

0 comments on commit 2c6f95d

Please sign in to comment.