From c9980711ce42de9cf58db35f41ce1ac42bfea0c7 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Sun, 10 Aug 2025 04:46:09 -0400 Subject: fix peephole bug (communative(phi(a,b), phi(a,b)) =/= communative(a,b)) --- test.lang | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test.lang') diff --git a/test.lang b/test.lang index 2de85c1..d461439 100644 --- a/test.lang +++ b/test.lang @@ -1,9 +1,11 @@ func main(a, b i64) i64 { let x i64, y bool - if a = b { + if a < b { let t = a a := b b := t + } else { + x := 2 } - return a + return (a + b) + x } -- cgit v1.2.3