]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: use standard dom tree in nilcheckelim
authorKeith Randall <khr@golang.org>
Fri, 7 Oct 2016 17:08:10 +0000 (10:08 -0700)
committerKeith Randall <khr@golang.org>
Fri, 7 Oct 2016 20:02:47 +0000 (20:02 +0000)
commitf4e37c8ec5f54964221fc950c2f0260140f438d8
treef8cbf17f2fc0a81ad3ebaefdbf85fa27d8170163
parent433be563b6246eb132aed6e9e58f46a0d46f7010
cmd/compile: use standard dom tree in nilcheckelim

No need to build a bespoke dom tree here when we might
have one cached already.  The allocations for the dom tree
were also more expensive than they needed to be.

Fixes #12021

Change-Id: I6a967880aee03660ad6fc293f8fc783779cae11d
Reviewed-on: https://go-review.googlesource.com/30671
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/nilcheck.go