From f119f08aa254d4e98211ade88b8c415fba3746fb Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 21 Nov 2025 17:40:42 +0100 Subject: ir: implement dominator tree computation --- ir/ir.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ir/ir.h') diff --git a/ir/ir.h b/ir/ir.h index 1c7c02e..77f25d4 100644 --- a/ir/ir.h +++ b/ir/ir.h @@ -128,6 +128,7 @@ struct block { }; struct block *lprev, *lnext; struct block *s1, *s2; + struct block *idom; vec_of(ushort) phi; vec_of(ushort) ins; struct { uchar t; union ref arg[2]; } jmp; @@ -301,6 +302,7 @@ void copyopt(struct function *); /** cfg.c **/ void sortrpo(struct function *fn); +void filldom(struct function *fn); /** abi0.c **/ void abi0(struct function *); -- cgit v1.2.3