commit 6a881572a84a4eb07b2089c66558cd1112213f4f parent 0df9109d9a61da94d0db74c699d305334b4a0948 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Sat, 28 Dec 2024 12:40:18 +0100 cc2/qbe: Remove jump optimization Qbe already handles this kind of optimizations, so it does not make sense to have this code here. Diffstat:
M | src/cmd/scc-cc/cc2/qbe/cgen.c | | | 18 | ------------------ |
1 file changed, 0 insertions(+), 18 deletions(-)
diff --git a/src/cmd/scc-cc/cc2/qbe/cgen.c b/src/cmd/scc-cc/cc2/qbe/cgen.c @@ -816,24 +816,6 @@ norm(Range *rp, Node *np) sym->kind = SLABEL; next->label = sym; } - case OJMP: - for (;;) { - dst = np->u.sym->u.stmt; - if (dst->op != OJMP) - break; - np->u.sym = dst->u.sym; - } - for (p = np->next; p; p = p->next) { - if (p == dst) - return NULL; - if (p->op == ONOP || - p->op == OBLOOP || - p->op == OELOOP) { - continue; - } - break; - } - break; } return np; }