diff options
| author | Wayne Zuo <wdvxdr@golangcn.org> | 2022-11-17 18:10:00 +0800 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2022-11-18 13:26:33 +0000 |
| commit | 8893da7c724cf5df859a3c4ef6f32d94f0b39a00 (patch) | |
| tree | 22beae2f15f5ee7b8099968cfe62e2f6ef2d6b2a /src/plugin | |
| parent | 205f636e0ab491b7a06e7b7879abb897cdaaf1b4 (diff) | |
| download | go-8893da7c724cf5df859a3c4ef6f32d94f0b39a00.tar.xz | |
cmd/compile: fix wrong optimization for eliding Not in Phi
The previous rule may move the phi value into a wrong block.
This CL make it only rewrite the phi value not the If block,
so that the phi value will stay in old block.
Fixes #56777
Change-Id: I9479a5c7f28529786968413d35b82a16181bb1f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/451496
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/plugin')
0 files changed, 0 insertions, 0 deletions
