From 972f6b9890ea3644626fc097e460035028b940eb Mon Sep 17 00:00:00 2001 From: Léo Gourdin Date: Fri, 4 Dec 2020 23:26:01 +0100 Subject: a first working draft on ldp/stp peephole --- aarch64/OpWeightsAsm.ml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'aarch64/OpWeightsAsm.ml') diff --git a/aarch64/OpWeightsAsm.ml b/aarch64/OpWeightsAsm.ml index 3ce2c68e..44c6f16b 100644 --- a/aarch64/OpWeightsAsm.ml +++ b/aarch64/OpWeightsAsm.ml @@ -70,13 +70,14 @@ module Cortex_A53 = struct | PBasic (PArith (Pcset (_, _))) | PBasic (PArith (Pcsel (_, _, _, _))) -> 6 | PBasic (PArith _) -> 1 | PBasic (PLoad _) -> 3 - | PBasic (PStore (_, _, _)) -> 3 + | PBasic (PStore _) -> 3 | PBasic (Pallocframe (_, _)) -> 3 | PBasic (Pfreeframe (_, _)) -> 1 | PBasic (Ploadsymbol (_, _)) -> 1 | PBasic (Pcvtsw2x (_, _)) -> 2 | PBasic (Pcvtuw2x (_, _)) -> 2 | PBasic (Pcvtx2w _) -> 1 + | PBasic (Pnop) -> 0 | PControl _ -> 6 let resources_of_op (i : instruction) (nargs : int) = @@ -110,13 +111,14 @@ module Cortex_A53 = struct | PBasic (PArith (Pcset (_, _))) | PBasic (PArith (Pcsel (_, _, _, _))) -> [| 1; 1; 1; 0 |] | PBasic (PArith _) -> [| 1; 1; 0; 0 |] | PBasic (PLoad _) -> [| 1; 0; 0; 1 |] - | PBasic (PStore (_, _, _)) -> [| 1; 0; 0; 1 |] + | PBasic (PStore _) -> [| 1; 0; 0; 1 |] | PBasic (Pallocframe (_, _)) -> [| 1; 0; 0; 1 |] | PBasic (Pfreeframe (_, _)) -> [| 1; 1; 0; 0 |] | PBasic (Ploadsymbol (_, _)) -> [| 1; 1; 0; 0 |] | PBasic (Pcvtsw2x (_, _)) -> [| 1; 1; 0; 0 |] | PBasic (Pcvtuw2x (_, _)) -> [| 1; 1; 0; 0 |] | PBasic (Pcvtx2w _) -> [| 1; 1; 0; 0 |] + | PBasic (Pnop) -> [| 0; 0; 0; 0 |] | PControl _ -> resource_bounds (*let non_pipelined_resources_of_op (op : operation) (nargs : int) = -- cgit