diff options
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) { |
