]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add type-based alias analysis
authorAndrey Bokhanko <andreybokhanko@gmail.com>
Wed, 27 Nov 2024 17:47:58 +0000 (20:47 +0300)
committerGopher Robot <gobot@golang.org>
Fri, 14 Feb 2025 23:32:55 +0000 (15:32 -0800)
commit11f7ea8ce045c27956fcbffcc98e8987f9fb9743
tree8b6c440f85e4ed511b204ce7e577118c6f2aefdc
parent2299a4289d69c71573fd22350eea0677639e563c
cmd/compile: add type-based alias analysis

Make ssa.disjoint call ssa.disjointTypes to disambiguate Values based on
their types. Only one type-based rule is employed: a Type can't alias
with a pointer (https://pkg.go.dev/unsafe#Pointer).

Fixes #70488

Change-Id: I5a7e75292c2b6b5a01fb9048e3e2360e31dbcdd9
Reviewed-on: https://go-review.googlesource.com/c/go/+/632176
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/rttype/rttype.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewrite_test.go