]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove redundant nil checks
authorKeith Randall <khr@golang.org>
Wed, 13 Nov 2024 04:14:31 +0000 (20:14 -0800)
committerKeith Randall <khr@golang.org>
Wed, 20 Nov 2024 16:28:52 +0000 (16:28 +0000)
commit7d2e3da2432f3030e282ef88793d03c86d3b8d17
tree606d7dfca4c359264bee241c035d57a83f73f270
parent76e4efdc77861954969ce192966e1595c268d8c1
cmd/compile: remove redundant nil checks

Optimize them away if we can.

If not, be more careful about splicing them out after scheduling.

Change-Id: I660e54649d753dc456d2e25d389d375a16d76940
Reviewed-on: https://go-review.googlesource.com/c/go/+/627418
Reviewed-by: Shengwei Zhao <wingrez@126.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go
src/cmd/compile/internal/ssa/schedule.go