]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark LoweredGetCallerPC rematerializeable
authorCherry Zhang <cherryyz@google.com>
Fri, 13 Oct 2017 15:05:12 +0000 (11:05 -0400)
committerCherry Zhang <cherryyz@google.com>
Sat, 14 Oct 2017 00:53:20 +0000 (00:53 +0000)
commite01eac371a3a5d62b5e75dbb4b7b6c89bae81569
treec9046ed29f862c3307457ed664467d1dee3c91d3
parentd1bbdbe76092a1390383bf6168e95815b059e138
cmd/compile: mark LoweredGetCallerPC rematerializeable

The caller's PC is always available in the frame. We can just
load it when needed, no need to spill.

Change-Id: I9c0a525903e574bb4eec9fe53cbeb8c64321166a
Reviewed-on: https://go-review.googlesource.com/70710
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/gen/386Ops.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go