remove comments from asm

This commit is contained in:
Janis 2024-08-30 21:55:16 +02:00
parent 48bbcdec5e
commit 9194e35851
2 changed files with 8 additions and 1 deletions

View file

@ -2139,7 +2139,6 @@ impl Mir {
let inst = self.nodes[i]; let inst = self.nodes[i];
let data = self.data[i]; let data = self.data[i];
write!(func.current_branch(), "// ");
self.render_node(func.current_branch(), strings, &liveness, node); self.render_node(func.current_branch(), strings, &liveness, node);
match inst { match inst {

View file

@ -0,0 +1,8 @@
fn square_of_greater(a: i32, b: i32) -> i32 {
let asqrt: i32 = a * a;
let bsqrt: i32 = b * b;
let gt: bool = a > b;
(asqrt * gt as i32) + (bsqrt * !gt as i32)
}