diff options
| author | WormHeamer | 2025-08-30 23:20:51 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-08-30 23:20:51 -0400 |
| commit | cbca8b454309122632615f0bcb787bc898503df9 (patch) | |
| tree | 5b888ba81858df7f45baffe4a760d816cd59cd08 /peephole.c | |
| parent | 6e419a23faf6550c3d3e986796ccf33bdec79c74 (diff) | |
separate IR graph parts of Proc into a Graph struct
Diffstat (limited to 'peephole.c')
| -rw-r--r-- | peephole.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -240,7 +240,7 @@ static int node_equiv_input(Node *a, Node *b) { return 1; } -Node *node_new_zero(Proc *p, Node *n) { +Node *node_new_zero(Graph *p, Node *n) { Value v = { .type = { .lvl = T_CONST, @@ -257,7 +257,7 @@ static inline int is_zero(Node *n) { } /* needs lexer for error reporting */ -Node *node_idealize(Node *n, Proc *p, Lexer *l) { +Node *node_idealize(Node *n, Graph *p, Lexer *l) { type_check(n, l); /* stuff that needs to happen even if optimizations are disabled */ @@ -613,7 +613,7 @@ zero_no_effect: if (node_eql_i64(CAR(n), 0)) return CDR(n); return NULL; } -Node *node_peephole(Node *n, Proc *p, Lexer *l) { +Node *node_peephole(Node *n, Graph *p, Lexer *l) { assert(n->refs > 0); Node *r = node_idealize(n, p, l); if (r) { |
