]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: can stop tracking gotype in regopt
authorRuss Cox <rsc@golang.org>
Mon, 25 Feb 2013 21:11:34 +0000 (16:11 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 25 Feb 2013 21:11:34 +0000 (16:11 -0500)
Now that the type information is in TYPE instructions
that are not rewritten by the optimization passes,
we don't have to try to preserve the type information
(no longer) attached to MOV instructions.

R=ken2
CC=golang-dev
https://golang.org/cl/7402054

src/cmd/5g/reg.c
src/cmd/6g/reg.c
src/cmd/8g/reg.c
src/cmd/gc/go.h

index 0667531ebf309f9358134c81c0417eaa191a50ff..eaaaf9be3a1d92117267105aef5e80ae93ba038e 100644 (file)
@@ -1012,7 +1012,6 @@ mkvar(Reg *r, Adr *a)
        v = var+i;
        v->offset = o;
        v->name = n;
-//     v->gotype = a->gotype;
        v->etype = et;
        v->width = w;
        v->addr = flag;         // funny punning
index e1188a2353a162a21ae6318407a7dca7f0cd1e43..c56d71678bf42cc198f9372cd26e23fef86e7b44 100644 (file)
@@ -872,7 +872,6 @@ addmove(Reg *r, int bn, int rn, int f)
        a->offset = v->offset;
        a->etype = v->etype;
        a->type = v->name;
-       a->gotype = v->gotype;
        a->node = v->node;
        a->sym = v->node->sym;
 
@@ -1056,7 +1055,6 @@ mkvar(Reg *r, Adr *a)
        v = var+i;
        v->offset = o;
        v->name = n;
-       v->gotype = a->gotype;
        v->etype = et;
        v->width = w;
        v->addr = flag;         // funny punning
index c1f51c0a4138787f32484090b35d3681084bff86..985f6ccbc4dfd87015cf98c43f5fb309c6c60d81 100644 (file)
@@ -806,7 +806,6 @@ addmove(Reg *r, int bn, int rn, int f)
        a->offset = v->offset;
        a->etype = v->etype;
        a->type = v->name;
-       a->gotype = v->gotype;
        a->node = v->node;
        a->sym = v->node->sym;
 
@@ -984,7 +983,6 @@ mkvar(Reg *r, Adr *a)
        v = var+i;
        v->offset = o;
        v->name = n;
-       v->gotype = a->gotype;
        v->etype = et;
        v->width = w;
        v->addr = flag;         // funny punning
index 05d942b41925e4d8f4969ee0921d523aa612c804..4da7a03ac2da9c99cadb6ed160e1f36f997ad13d 100644 (file)
@@ -695,7 +695,6 @@ typedef     struct  Var     Var;
 struct Var
 {
        vlong   offset;
-       Sym*    gotype;
        Node*   node;
        int     width;
        char    name;