diff options
| author | Robert Griesemer <gri@golang.org> | 2016-03-21 10:52:03 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2016-03-21 17:58:21 +0000 |
| commit | 07749aef988e55aba0c67aeb3607f42b58d4e249 (patch) | |
| tree | bc2fa6adcf9dd83453e02902a15a572d9bac962e /src/encoding/binary/binary_test.go | |
| parent | d3253876f20ea39dbd7694ecaa5022e6cc147ccc (diff) | |
| download | go-07749aef988e55aba0c67aeb3607f42b58d4e249.tar.xz | |
cmd/compile: special-case const comparisons against zero
Constant comparisons against 0 are reasonably common.
Special-case and avoid allocating a new zero value each time.
Change-Id: I6c526c8ab30ef7f0fef59110133c764b7b90ba05
Reviewed-on: https://go-review.googlesource.com/20956
Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/encoding/binary/binary_test.go')
0 files changed, 0 insertions, 0 deletions
