]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't move nilCheck operations during tighten
authorKeith Randall <khr@golang.org>
Thu, 13 Mar 2025 23:15:15 +0000 (16:15 -0700)
committerKeith Randall <khr@google.com>
Fri, 14 Mar 2025 04:24:20 +0000 (21:24 -0700)
commita1ddbdd3ef8b739aab53f20d6ed0a61c3474cf12
treeaeabb85b91d425a151b2f9c1cf38b5edba528d19
parent80f068928fd957935df3d61da319331e76a73b49
cmd/compile: don't move nilCheck operations during tighten

Nil checks need to stay in their original blocks. They cannot
be moved to a following conditionally-executed block.

Fixes #72860

Change-Id: Ic2d66cdf030357d91f8a716a004152ba4c016f77
Reviewed-on: https://go-review.googlesource.com/c/go/+/657715
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/tighten.go
test/fixedbugs/issue72860.go [new file with mode: 0644]