]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove TODO
authorAustin Clements <austin@google.com>
Wed, 15 Nov 2017 22:26:33 +0000 (14:26 -0800)
committerAustin Clements <austin@google.com>
Fri, 17 Nov 2017 00:59:52 +0000 (00:59 +0000)
I experimented with changing the write barrier to take the value in SI
rather than AX to improve register allocation. It had no effect on
performance and only made the "hello world" text 0.07% smaller, so
let's just remove the comment.

Change-Id: I6a261d14139b7a02a8467b31e74951dfb927ffb4
Reviewed-on: https://go-review.googlesource.com/78033
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/asm_amd64.s

index ea48a8e3c0925ff57fb5657c1504dff303fb73e4..7e13458b0b1c22e1ea377dddd2587e51c044dfb1 100644 (file)
@@ -2379,8 +2379,6 @@ TEXT runtime·addmoduledata(SB),NOSPLIT,$0-0
 // - AX is the value being written at DI
 // It clobbers FLAGS. It does not clobber any general-purpose registers,
 // but may clobber others (e.g., SSE registers).
-//
-// TODO: AX may be a bad choice because regalloc likes to use it.
 TEXT runtime·gcWriteBarrier(SB),NOSPLIT,$120
        // Save the registers clobbered by the fast path.
        //