more optimizations, new one doesnt work yet
This commit is contained in:
@@ -120,5 +120,17 @@ class X86_64Optimizer(Optimizer):
|
||||
replace=[
|
||||
Instruction("push", ["x"])
|
||||
]
|
||||
),
|
||||
|
||||
PeepholeRule(
|
||||
match=[
|
||||
Instruction("mov", ["a", "b"]),
|
||||
Instruction("mov", ["c", "d"]),
|
||||
Instruction("cmp", ["a", "d"])
|
||||
],
|
||||
replace=[
|
||||
Instruction("mov", ["c", "d"]),
|
||||
Instruction("cmp", ["b", "c"])
|
||||
]
|
||||
)
|
||||
]
|
Reference in New Issue
Block a user