Skip to content

Commit 545250f

Browse files
committed
opt: this recipe can also be applied for others cmps
concretely for core.__LEI8, core.__LTI8, core.__NOT32 Others like AND16 could be converted (saves memory, but reduces speed). In the future there would be a recipe for that.
1 parent 5777f14 commit 545250f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/arch/z80/peephole/opts/000_o1_lei16_bool.opt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ WITH {{
1919
$1
2020
}}
2121

22-
IF {{ $1 == "call .core.GEF" || $1 == "call .core.LEI16"}}
22+
IF {{
23+
$1 == "call .core.GEF" || $1 == "call .core.LEI16" || $1 == "call .core.__NOT32" ||
24+
$1 == "call .core.__LEI8" || $1 == "call .core.__LTI8"
25+
}}

0 commit comments

Comments
 (0)