]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use OffPtr when possible
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 4 Mar 2016 20:34:43 +0000 (12:34 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 6 Mar 2016 23:57:06 +0000 (23:57 +0000)
commitda1802f1df178b0e06366a0589237d924b7c6c4e
tree603152feba44f105237bb65c7820acb3fac0b8a4
parent3294014ae119f34c40547ed253bf4c5d25dc5f17
cmd/compile: use OffPtr when possible

OffPtr allocates less and is easier to optimize.

With this change, the OffPtr collapsing opt
rule matches increase from 160k to 263k,
and the Load-after-Store opt rule matches
increase from 217 to 853.

Change-Id: I763426a3196900f22a367f7f6d8e8047b279653d
Reviewed-on: https://go-review.googlesource.com/20273
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Todd Neal <todd@tneal.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go