Skip to content

Commit

Permalink
Turn off dumb debugging printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
RealNeGate committed Feb 18, 2025
1 parent 5c6f6ef commit 7265c1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tb/rogers_ra.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,15 +793,15 @@ static int choose_decent_spill(Ctx* restrict ctx, Rogers* restrict ra, VReg* att
// we can only spill ourselves if that meant loosening the vreg's mask
if (fixed_reg_mask(attempted_vreg->mask) >= 0) {
RegMask* expected_mask = ctx->constraint(ctx, attempted_vreg->n, NULL);
printf(" self spill? %%%u\n", attempted_vreg->n->gvn);
// printf(" self spill? %%%u\n", attempted_vreg->n->gvn);

FOR_USERS(u, attempted_vreg->n) {
RegMask* in_mask = constraint_in(ctx, USERN(u), USERI(u));
RegMask* new_mask = tb__reg_mask_meet(ctx, expected_mask, in_mask);

printf(" use %%%u[%d]: ", USERN(u)->gvn, USERI(u));
tb__print_regmask(new_mask);
printf("\n");
// printf(" use %%%u[%d]: ", USERN(u)->gvn, USERI(u));
// tb__print_regmask(new_mask);
// printf("\n");

// shouldn't see any hard splits here?
if (new_mask == &TB_REG_EMPTY) {
Expand Down

0 comments on commit 7265c1a

Please sign in to comment.