optimizer fixed 👍

This commit is contained in:
SpookyDervish
2025-09-09 17:47:43 +10:00
parent 132ed8ed12
commit c2bdf555e4
6 changed files with 17 additions and 24 deletions

View File

@@ -124,13 +124,13 @@ class X86_64Optimizer(Optimizer):
PeepholeRule(
match=[
Instruction("mov", ["a", "b"]),
Instruction("mov", ["c", "d"]),
Instruction("cmp", ["a", "d"])
Instruction("mov", ["rax", "y"]),
Instruction("mov", ["rbx", "x"]),
Instruction("cmp", ["rax", "rbx"])
],
replace=[
Instruction("mov", ["c", "d"]),
Instruction("cmp", ["b", "c"])
Instruction("mov", ["rax", "y"]),
Instruction("cmp", ["rax", "x"])
]
)
]