]> Cypherpunks repositories - gostls13.git/commit
cmd/link: in stack bound check, don't check a call repetitively
authorCherry Zhang <cherryyz@google.com>
Fri, 3 Apr 2020 02:47:29 +0000 (22:47 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 3 Apr 2020 14:12:25 +0000 (14:12 +0000)
commite18a5ba0ca142c64aa03c6fb500d69cbbaab1bb6
tree1b3fc169d772a1a06ff8bc7f0f2b8f73f140b8fb
parent5dde10c3044f75fbcc29193608a7b7156a3c9ef6
cmd/link: in stack bound check, don't check a call repetitively

In stack bound check pass, check a call once, not over and over
again. Fix an accidental quadratic behavior...

In particular, switching to the new linker caused MIPS builders
noticeably slower. This CL fixes it.

Change-Id: Idd00c79e80af6278652c92a1d9d7bb2d194e9490
Reviewed-on: https://go-review.googlesource.com/c/go/+/227078
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/link/internal/ld/lib.go