ok damn it nearly works
This commit is contained in:
@@ -140,5 +140,26 @@ class X86_64Optimizer(Optimizer):
|
||||
Instruction("mov", ["y", "x"])
|
||||
],
|
||||
replace=[]
|
||||
),
|
||||
|
||||
PeepholeRule(
|
||||
match=[
|
||||
Instruction("mov", ["x", "y"]),
|
||||
Instruction("add", ["z", "x"])
|
||||
],
|
||||
replace=[
|
||||
Instruction("add", ["z", "y"])
|
||||
]
|
||||
),
|
||||
PeepholeRule(
|
||||
match=[
|
||||
Instruction("add", ["x", "0"])
|
||||
],
|
||||
replace=[]
|
||||
),
|
||||
|
||||
PeepholeRule(
|
||||
match=[Instruction("mov", ["x", "x"])],
|
||||
replace=[]
|
||||
)
|
||||
]
|
Reference in New Issue
Block a user