/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/tighten.go
28 строк
550 B
khr@golang.org
cmd/compile: pair loads and stores on arm64
14 фев 2025, 01:07
14 фев 2025, 01:07
20d7c57
Код
Авторство
О чём код?
// errorcheck -0 -d=ssa/tighten/debug=1 //go:build arm64 // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main var ( ga, gb, gc, gd int ) func moveValuesWithMemoryArg(len int) { for n := 0; n < len; n++ { // Loads of b and d can be delayed until inside the outer "if". a := ga b := gb // ERROR "MOVDload is moved$" c := gc d := gd // ERROR "MOVDload is moved$" if a == c { if b == d { return } } } }