]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use fuse to implement shortcircuit loop
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 19 Apr 2020 01:00:40 +0000 (18:00 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 20 Apr 2020 19:36:50 +0000 (19:36 +0000)
commit0239a5c47856f758b9277e23c40a067c9644a7c8
tree8f83847de7a7efc0b532abb8fb9713a47596bf26
parentc9af5523f324a031b23c6f1dcf448c051c994c00
cmd/compile: use fuse to implement shortcircuit loop

The rewrite loop in shortcircuit is identical to the one in fuse.
That's not surprising; shortcircuit is fuse-like.

Take advantage of that by merging the two loops.

Passes toolstash-check.

Change-Id: I642cb39a23d2ac8964ed577678f062fce721439c
Reviewed-on: https://go-review.googlesource.com/c/go/+/229003
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
src/cmd/compile/internal/ssa/shortcircuit.go