]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: support -buildmode=c-shared on linux/mips64{,le}
authorXiaodong Liu <liuxiaodong@loongson.cn>
Thu, 9 Sep 2021 08:07:38 +0000 (16:07 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 21 Apr 2023 23:06:11 +0000 (23:06 +0000)
commitd5fea5078b5d2b9f3c4da0f7cd4292f80806ca4b
tree745ad17ab4fb95053e77b7e1422bebebf84134c6
parent00401835c1d5122a84f0500e48655cd787402f3f
cmd/compile: support -buildmode=c-shared on linux/mips64{,le}

The modification of these rules is optimization to load/store global
variables. If there are a sequence of loads/stores nearby a global
variable address, the address can only be loaded from GOT once instead
of every time.

For #43264

Change-Id: Idedaf6c81f085955371320f51bca148ffb42a2d8
Reviewed-on: https://go-review.googlesource.com/c/go/+/348732
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/cmd/compile/internal/base/flag.go
src/cmd/compile/internal/liveness/plive.go
src/cmd/compile/internal/ssa/_gen/MIPS64.rules
src/cmd/compile/internal/ssa/rewriteMIPS64.go