]> Cypherpunks.ru repositories - gostls13.git/commit
test: test that we schedule OpArgIntReg early
authorKeith Randall <khr@golang.org>
Fri, 20 Jan 2023 21:54:36 +0000 (13:54 -0800)
committerKeith Randall <khr@google.com>
Sat, 21 Jan 2023 21:08:30 +0000 (21:08 +0000)
commitba913774543d7388b7bb1843fc7c1b935aebedda
treeb5b82130bf3035db24bc1f07deb6d2c0f85352b8
parent4ff074945a4848cd04c020b7f20ddaa1d78cc548
test: test that we schedule OpArgIntReg early

If OpArgIntReg is incorrectly scheduled, that causes it to be spilled
incorrectly, which causes the argument to not be considered live
at the start of the function.

This is the test for CL 462858

Add a brief mention of why CL 462858 is needed in the scheduling code.

Change-Id: Id199456f88d9ee5ca46d7b0353a3c2049709880e
Reviewed-on: https://go-review.googlesource.com/c/go/+/462899
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/schedule.go
test/live_regabi.go