]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: read symbol type only when necessary in elfreloc1
authorCherry Zhang <cherryyz@google.com>
Fri, 26 Jun 2020 18:06:41 +0000 (14:06 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 30 Jun 2020 15:55:36 +0000 (15:55 +0000)
commitb473a1f8da2998be9dee2b0e59a6854a4955dba1
tree973ee0a4628cf7b411394f8ebdaff4969670171c
parent92051a989b65a366e46bde00cd6569a91fb655cb
[dev.link] cmd/link: read symbol type only when necessary in elfreloc1

Slightly speeds up Asmb2.

Linking cmd/compile with external linking:
Asmb2         190ms ± 2%     182ms ± 2%  -4.14%  (p=0.000 n=10+9)

Change-Id: I55511d0e7b0511b60f8d02390076f8566bc7d135
Reviewed-on: https://go-review.googlesource.com/c/go/+/240397
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/s390x/asm.go