From 5c209b4df903c5f71cdc8320adbb34f1499f9232 Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 24 Mar 2026 11:55:13 +0100 Subject: mem2reg rewrite Do it in 2 passes: 1. gather variables, 2. step thru RPO transforming loads/stores to each variable. More elegant solution to f9e3a52eaa. More efficient since all variable usages are visited in CFG order, which matters due to block sealing. --- src/ir.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ir.h') diff --git a/src/ir.h b/src/ir.h index 2070ffd..7a1190d 100644 --- a/src/ir.h +++ b/src/ir.h @@ -105,6 +105,7 @@ enum op { #define oisalloca(o) in_range(o, Oalloca1, Oalloca16) #define oisstore(o) in_range(o, Ostorei8, Ostoref64) #define oisload(o) in_range(o, Oloads8, Oloadf64) +#define oisloadstore(o) in_range(o, Oloads8, Ostoref64) extern const char *opnames[]; extern const uchar opnoper[]; -- cgit v1.2.3