]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: call phiElimValue from removePhiArg
authorJakub Ciolek <jakub@ciolek.dev>
Mon, 6 Feb 2023 06:18:53 +0000 (07:18 +0100)
committerKeith Randall <khr@golang.org>
Tue, 16 May 2023 21:40:11 +0000 (21:40 +0000)
commitd29dd2ecf7563a8cb15a662a7ec5caa461068bbe
tree0564b8ef96691f4a1f21c8546d9e7caaef32773c
parent51fe7062d3bdcf3c1fc6de5b8ef8aa689a1d2b73
cmd/compile: call phiElimValue from removePhiArg

With the exception of the shortcircuit pass, removePhiArg is always unconditionally followed by phiElimValue.
Move the phiElimValue inside removePhiArg.

Resolves a TODO.

See CL 357964 for more info.

Change-Id: I8460b35864f4cd7301ba86fc3dce08ec8041da7f
Reviewed-on: https://go-review.googlesource.com/c/go/+/465435
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Jakub Ciolek <jakub@ciolek.dev>
src/cmd/compile/internal/ssa/block.go
src/cmd/compile/internal/ssa/critical.go
src/cmd/compile/internal/ssa/deadcode.go
src/cmd/compile/internal/ssa/fuse_branchredirect.go