]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix incorrect block for s390x Select1 op
authorMichael Munday <mike.munday@ibm.com>
Sun, 12 Apr 2020 09:45:24 +0000 (10:45 +0100)
committerMichael Munday <mike.munday@ibm.com>
Tue, 14 Apr 2020 19:01:47 +0000 (19:01 +0000)
commit334d410ae35a28d770fe43009ca346b4387c1399
tree81fb7406c89a3d0ad6143ff1d473e4d550a21dfe
parent33ff63da4ec9cd456cab65b034b80a2fde4ebdea
cmd/compile: fix incorrect block for s390x Select1 op

When inserting Select0 and Select1 ops we need to ensure that they
live in the same block as their argument. This is because they need
to be scheduled immediately after their argument for register and
flag allocation to work correctly.

Fixes #38356.

Change-Id: Iba384dbe87010f1c7c4ce909f08011e5f1de7fd5
Reviewed-on: https://go-review.googlesource.com/c/go/+/227879
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/rewriteS390X.go
test/fixedbugs/issue38356.go [new file with mode: 0644]