]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: label LoadReg with line number of the use
authorCherry Zhang <cherryyz@google.com>
Wed, 20 Jul 2016 14:09:40 +0000 (10:09 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 16 Sep 2016 15:38:28 +0000 (15:38 +0000)
commit46ba59025f527b2cfc5ef0d5ec47be45971ba672
treecbd4aa11996ac95d30797fc474d2e474ad316700
parent882dd1c3baff19cfe8d59bc1f69d766b38540fa5
cmd/compile: label LoadReg with line number of the use

A tentative fix of #16380. It adds "line" everywhere...

This also reduces binary size slightly (cmd/go on ARM as an example):

before after
total binary size 8068097 8018945 (-0.6%)
.gopclntab 1195341 1179929 (-1.3%)
.debug_line  689692  652017 (-5.5%)

Change-Id: Ibda657c6999783c5bac180cbbba487006dbf0ed7
Reviewed-on: https://go-review.googlesource.com/25082
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/deadstore.go
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssa/sparsemap.go