]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: invalidate CFG when fuseIf triggers
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 14 May 2019 21:46:15 +0000 (14:46 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 16 May 2019 17:17:29 +0000 (17:17 +0000)
commite7b7f874323bf105bebaf92db23fc4ba6f5c5257
treed330326e0653a17bab83ed5a16c778073525332e
parent822a9f537fb49f56d405f265fa4d1d3e9ddc0531
cmd/compile: invalidate CFG when fuseIf triggers

The compiler appears to have a latent bug:
fusePlain calls invalidateCFG when it changes block structure,
but fuseIf does not.

Fix this by hoisting the call to invalidateCFG to the top level.

Change-Id: Ic960fb3ac963b15b4a225aad84863d58efa954e6
Reviewed-on: https://go-review.googlesource.com/c/go/+/177198
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/fuse.go