]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: free value earlier in nilcheck
authorKeith Randall <khr@golang.org>
Thu, 24 Aug 2017 23:11:44 +0000 (16:11 -0700)
committerKeith Randall <khr@golang.org>
Fri, 25 Aug 2017 06:01:26 +0000 (06:01 +0000)
commit770d8d8207dbbbabf12d644e70b74d89f5bf595f
tree1bfb834fbc2f477ff41052fdacb020abbef0fd97
parent3723d080220080dcc5b40737eaf1970af29165b7
cmd/compile: free value earlier in nilcheck

When we remove a nil check, add it back to the free Value pool immediately.

Fixes #18732

Change-Id: I8d644faabbfb52157d3f2d071150ff0342ac28dc
Reviewed-on: https://go-review.googlesource.com/58810
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/nilcheck.go
src/cmd/compile/internal/ssa/regalloc.go