Skip to content

Commit

Permalink
remove debug prints I accidentally pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
simvux committed Nov 9, 2024
1 parent 7e252ab commit 23d3ced
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
3 changes: 2 additions & 1 deletion lumina-compiler/src/hir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,8 @@ fn check_param_len<'s>(
}
}
Ordering::Greater => {
let span = Span::from_params(ptypes.values(), |v| v.span);
// let span = Span::from_params(ptypes.values(), |v| v.span);
let span = nspan.extend_by_params(&params);
ast.sources
.error("missing parameter type(s)")
.m(module)
Expand Down
18 changes: 7 additions & 11 deletions lumina-compiler/src/lir/ssa/rewrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,10 @@ impl<'p> Rewrite<'p> {
panic!("underflow caused by optimization");
}

dbg!(v, self.new_block_params);

if let Some((start, bparams)) = self.new_block_params {
let pend = start.0 + bparams.len() as u32;
dbg!(&pend, v, start);

if dbg!(v.0 >= start.0) && dbg!(v.0 < pend) {
if v.0 >= start.0 && v.0 < pend {
let i = v.0 - start.0;
return bparams[i as usize];
}
Expand Down Expand Up @@ -170,21 +167,20 @@ impl<'p> Rewrite<'p> {
// TODO: we do this in multiple places, we should create a helper
if let Some((s, e)) = bdata.offset.as_mut() {
if s.0 > start.0 {
s.0 = dbg!(s.0.wrapping_add_signed(removedv));
e.0 = dbg!(e.0.wrapping_add_signed(removedv));
s.0 = s.0.wrapping_add_signed(removedv);
e.0 = e.0.wrapping_add_signed(removedv);
}
}
}
}

// Offset values to compensate
ssa.ventries.values_mut().for_each(|entry| {
dbg!(&entry);
*entry = dbg!(r.entry(entry))
});
ssa.ventries
.values_mut()
.for_each(|entry| *entry = r.entry(entry));

for (_, bdata) in ssa.blocks.iter_mut() {
bdata.tail = dbg!(r.flow(&bdata.tail));
bdata.tail = r.flow(&bdata.tail);
}
}
}
Expand Down

0 comments on commit 23d3ced

Please sign in to comment.