]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix bug in phiopt pass
authorKeith Randall <khr@golang.org>
Thu, 1 Apr 2021 06:58:54 +0000 (23:58 -0700)
committerKeith Randall <khr@golang.org>
Fri, 2 Apr 2021 05:24:14 +0000 (05:24 +0000)
commitaebc0b473e364daa0fad3b45e4dc77366408f3cd
tree30b1c382189c5ba7b7d7de02de8b6b5259d9d121
parent97b3ce430bb64fb6c8dfb244d400468932f2e984
cmd/compile: fix bug in phiopt pass

The math to invert the input index was wrong.

Fixes #45323

Change-Id: I7c68cac280e8f01a9c806ecb0f195f169267437e
Reviewed-on: https://go-review.googlesource.com/c/go/+/306431
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: fannie zhang <Fannie.Zhang@arm.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/phiopt.go
test/fixedbugs/issue45323.go [new file with mode: 0644]