mirror of https://github.com/golang/go.git
cmd/compile: cleanup atomic.Pointer[T] inline test
Updates #57410 Change-Id: I9be38e20c6b83d14f7785049a66de77ac7ecdf15 Reviewed-on: https://go-review.googlesource.com/c/go/+/463997 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
f36c7c5983
commit
3e1478ef0d
|
|
@ -208,7 +208,10 @@ func TestIntendedInlining(t *testing.T) {
|
|||
"(*Uintptr).Load",
|
||||
"(*Uintptr).Store",
|
||||
"(*Uintptr).Swap",
|
||||
// (*Pointer[T])'s methods' handled below.
|
||||
"(*Pointer[go.shape.int]).CompareAndSwap",
|
||||
"(*Pointer[go.shape.int]).Load",
|
||||
"(*Pointer[go.shape.int]).Store",
|
||||
"(*Pointer[go.shape.int]).Swap",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -234,14 +237,6 @@ func TestIntendedInlining(t *testing.T) {
|
|||
// (*Bool).CompareAndSwap is just over budget on 32-bit systems (386, arm).
|
||||
want["sync/atomic"] = append(want["sync/atomic"], "(*Bool).CompareAndSwap")
|
||||
}
|
||||
if true /* was buildcfg.Experiment.Unified */ {
|
||||
// Non-unified IR does not report "inlining call ..." for atomic.Pointer[T]'s methods.
|
||||
// TODO(cuonglm): remove once non-unified IR frontend gone.
|
||||
want["sync/atomic"] = append(want["sync/atomic"], "(*Pointer[go.shape.int]).CompareAndSwap")
|
||||
want["sync/atomic"] = append(want["sync/atomic"], "(*Pointer[go.shape.int]).Load")
|
||||
want["sync/atomic"] = append(want["sync/atomic"], "(*Pointer[go.shape.int]).Store")
|
||||
want["sync/atomic"] = append(want["sync/atomic"], "(*Pointer[go.shape.int]).Swap")
|
||||
}
|
||||
|
||||
switch runtime.GOARCH {
|
||||
case "386", "wasm", "arm":
|
||||
|
|
|
|||
Loading…
Reference in New Issue