From: Russ Cox Date: Thu, 7 Oct 2010 10:36:39 +0000 (-0400) Subject: gc: maybe the code is only mostly dead X-Git-Tag: weekly.2010-10-13~48 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=53fff1e74d03260e58ceba0cd2f70c3cc5a54043;p=gostls13.git gc: maybe the code is only mostly dead R=ken2 CC=golang-dev https://golang.org/cl/2346044 --- diff --git a/src/cmd/gc/gen.c b/src/cmd/gc/gen.c index a8b2e1b8ed..d2396aa09f 100644 --- a/src/cmd/gc/gen.c +++ b/src/cmd/gc/gen.c @@ -257,17 +257,6 @@ gen(Node *n) break; case OIF: - if(n->ntest == N || n->ntest->op == OLITERAL) { - // drop dead code in if true or if false. - // the linker will do it for us in general, - // but this avoids writnig to the object file - // in a very common case. - if(n->ntest == N || n->ntest->val.u.bval) - genlist(n->nbody); - else - genlist(n->nelse); - break; - } p1 = gjmp(P); // goto test p2 = gjmp(P); // p2: goto else patch(p1, pc); // test: