]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: ensure register args come before on-stack args in schedule
authorKeith Randall <khr@golang.org>
Fri, 20 Jan 2023 18:36:19 +0000 (10:36 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 20 Jan 2023 19:51:06 +0000 (19:51 +0000)
commitb08d5ee5e9c700a1267f0b883702766a19d89b2d
tree090ac57032055de2c1f8a766042c4d4554c11626
parentf07910bd577f73b81e4f7117c7cfdf9cf7579028
cmd/compile: ensure register args come before on-stack args in schedule

The register allocator doesn't like OpArg coming in between other
OpIntArg operations, as it doesn't put the spills in the right place
in that situation.

This is just a bug in the new scheduler, I didn't copy over the
proper score from the old scheduler correctly.

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