]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: issue VarDef only for pointer-ful types
authorKeith Randall <khr@golang.org>
Sun, 24 Jul 2022 20:24:21 +0000 (13:24 -0700)
committerKeith Randall <khr@golang.org>
Mon, 22 Aug 2022 18:57:00 +0000 (18:57 +0000)
commita74e5f584e96cc89a8f6a1bb1a8cd9fc6ed6e72d
tree58b4e2f67391ae94e6bde856c9dc843fb118a3da
parenta726c9f6620a3fa34d1549706c1151754d385182
cmd/compile: issue VarDef only for pointer-ful types

Use OpVarDef only when the variable being defined has pointers in it.
VarDef markers are only used for liveness analysis, and that only
runs on pointer-ful variables.

Fixes #53810

Change-Id: I09b0ef7ed31e72528916fe79325f80bbe69ff9b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/419320
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/check.go
src/cmd/compile/internal/ssa/cse_test.go
src/cmd/compile/internal/ssa/export_test.go
src/cmd/compile/internal/ssagen/ssa.go