optimizer fixed 👍
This commit is contained in:
@@ -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"])
|
||||
]
|
||||
)
|
||||
]
|
Reference in New Issue
Block a user