summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-07 02:47:23 -0400
committerWormHeamer2025-08-07 02:47:23 -0400
commit739b4852d2a826ba2985c7db2f5c778050f72250 (patch)
treefec019eb1aac70ee23b6a16d61e4976780c353fe /test.lang
parent6040eafed3e94efdea6f71b7018e978024193572 (diff)
preliminary peephole optimization of if statements
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.lang b/test.lang
index 00334c9..1f33175 100644
--- a/test.lang
+++ b/test.lang
@@ -1,6 +1,6 @@
proc main(a, b i64) {
- if a > 5 {
- a := a - 5
+ if a = b {
+ b := 3
}
return a
}