File tree 1 file changed +4
-9
lines changed
src/cmd/compile/internal/test
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,10 @@ func TestIntendedInlining(t *testing.T) {
208
208
"(*Uintptr).Load" ,
209
209
"(*Uintptr).Store" ,
210
210
"(*Uintptr).Swap" ,
211
- // (*Pointer[T])'s methods' handled below.
211
+ "(*Pointer[go.shape.int]).CompareAndSwap" ,
212
+ "(*Pointer[go.shape.int]).Load" ,
213
+ "(*Pointer[go.shape.int]).Store" ,
214
+ "(*Pointer[go.shape.int]).Swap" ,
212
215
},
213
216
}
214
217
@@ -234,14 +237,6 @@ func TestIntendedInlining(t *testing.T) {
234
237
// (*Bool).CompareAndSwap is just over budget on 32-bit systems (386, arm).
235
238
want ["sync/atomic" ] = append (want ["sync/atomic" ], "(*Bool).CompareAndSwap" )
236
239
}
237
- if true /* was buildcfg.Experiment.Unified */ {
238
- // Non-unified IR does not report "inlining call ..." for atomic.Pointer[T]'s methods.
239
- // TODO(cuonglm): remove once non-unified IR frontend gone.
240
- want ["sync/atomic" ] = append (want ["sync/atomic" ], "(*Pointer[go.shape.int]).CompareAndSwap" )
241
- want ["sync/atomic" ] = append (want ["sync/atomic" ], "(*Pointer[go.shape.int]).Load" )
242
- want ["sync/atomic" ] = append (want ["sync/atomic" ], "(*Pointer[go.shape.int]).Store" )
243
- want ["sync/atomic" ] = append (want ["sync/atomic" ], "(*Pointer[go.shape.int]).Swap" )
244
- }
245
240
246
241
switch runtime .GOARCH {
247
242
case "386" , "wasm" , "arm" :
You can’t perform that action at this time.
0 commit comments