]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ir: export 'reassigned', handle OASOP
authorThan McIntosh <thanm@google.com>
Fri, 30 Jun 2023 20:06:10 +0000 (16:06 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 10 Aug 2023 18:53:18 +0000 (18:53 +0000)
commit7087b8ac4c2eeab4fe52e498fa55a0c95ea89933
tree43d2521d2bcf1fb621ffd6b3c82766f6df37fe6e
parentb888ec4ac3715b3b8d153f697ce35f932b33cf67
cmd/compile/internal/ir: export 'reassigned', handle OASOP

Rename the ir-local function "reassigned" to "Reassigned" so that it
can be used as part of inline heuristic analysis. Fix up the header
comment along that way, which had some stale material. Add support for
detecting reassignments via OASOP (as opposed to just simple
assignments).

Updates #61502.

Change-Id: I50f40f81263c0d7f61f30fcf0258f0b0f93acdca
Reviewed-on: https://go-review.googlesource.com/c/go/+/511560
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/ir/expr.go