]> Cypherpunks repositories - gostls13.git/commit
cmd/6g, cmd/8g: do not LEA[LQ] interfaces when calling methods.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Tue, 11 Sep 2012 06:45:23 +0000 (08:45 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Tue, 11 Sep 2012 06:45:23 +0000 (08:45 +0200)
commitb45b6fd1c73c7560740b5ff2700f9b07ed41914c
tree105f4d922de6329636465fb5d5efb93b34589dc8
parentff642e290f8e8ced8be26324838febda2ae3c534
cmd/6g, cmd/8g: do not LEA[LQ] interfaces when calling methods.

It is enough to load directly the data word and the itab word
from memory, so we save a LEA instruction for each method call,
and allow elimination of some extra temporaries.

Update #1914.

R=daniel.morsing, rsc
CC=golang-dev, remy
https://golang.org/cl/6501110
src/cmd/6g/ggen.c
src/cmd/8g/ggen.c