]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: reduce line number churn in generated code
authorDavid Chase <drchase@google.com>
Wed, 24 Feb 2016 02:09:39 +0000 (21:09 -0500)
committerDavid Chase <drchase@google.com>
Wed, 24 Feb 2016 16:57:36 +0000 (16:57 +0000)
commit288817b05a0ea1671c87b7c3ed021fed874d0caa
tree7580a1984cd42fbdbfb366eb5c6e2af792cacf2e
parentb96189d1a046f7a70a632bd02106bd15e096dfa1
[dev.ssa] cmd/compile: reduce line number churn in generated code

In regalloc, make LoadReg instructions use the line number
of their *use*, not their *source*.  This reduces the
tendency of debugger stepping to "jump around" the program.

Change-Id: I59e2eeac4dca9168d8af3a93effbc5bdacac2881
Reviewed-on: https://go-review.googlesource.com/19836
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssa/tighten.go