]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: handle new panicindex/slice names in optimizations
authorKeith Randall <keithr@alum.mit.edu>
Wed, 3 Apr 2019 20:16:58 +0000 (13:16 -0700)
committerKeith Randall <khr@golang.org>
Wed, 3 Apr 2019 21:24:17 +0000 (21:24 +0000)
commit48ef01051ae58265088ee87f3a408224d2cfaec3
tree87edc8caf281f3c3ec298a23d542461e37d515c0
parent60736733ec988864c7cd91115e2761d6f6635df2
cmd/compile: handle new panicindex/slice names in optimizations

These new calls should not prevent NOSPLIT promotion, like the old ones.
These new calls should not prevent racefuncenter/exit removal.

(The latter was already true, as the new calls are not yet lowered
to StaticCalls at the point where racefuncenter/exit removal is done.)

Add tests to make sure we don't regress (again).

Fixes #31219

Change-Id: I3fb6b17cdd32c425829f1e2498defa813a5a9ace
Reviewed-on: https://go-review.googlesource.com/c/go/+/170639
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ilya Tocar <ilya.tocar@intel.com>
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/internal/obj/x86/obj6.go
test/codegen/race.go [new file with mode: 0644]
test/codegen/stack.go
test/run.go