]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: sparse conditional constant propagation
authorYi Yang <qingfeng.yy@alibaba-inc.com>
Thu, 18 May 2023 11:17:11 +0000 (11:17 +0000)
committerKeith Randall <khr@golang.org>
Wed, 24 May 2023 02:54:03 +0000 (02:54 +0000)
commitfa50248ce6dfbe8afb18a67aa4d0d0cd3800a329
tree6b9a4c15d7a8c3902be14927ff7375775d4ba1a8
parente7a9ca0a53db4b4f357b5d3caaef65e44ce08a90
cmd/compile: sparse conditional constant propagation

sparse conditional constant propagation can discover optimization opportunities that cannot be found by just combining constant folding and constant propagation and dead code elimination separately.

Updates #59399

Change-Id: Ia954e906480654a6f0cc065d75b5912f96f36b2e
GitHub-Last-Rev: 90fc02db99f817b7f0ce5c584642ab1b166e62d7
GitHub-Pull-Request: golang/go#59575
Reviewed-on: https://go-review.googlesource.com/c/go/+/483875
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/_gen/genericOps.go
src/cmd/compile/internal/ssa/block.go
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/sccp.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/sccp_test.go [new file with mode: 0644]
test/checkbce.go
test/codegen/compare_and_branch.go
test/loopbce.go