1
0
mirror of https://github.com/golang/go synced 2024-11-20 06:54:42 -07:00
go/src
Rémy Oudompheng ff642e290f cmd/6g, cmd/8g: eliminate extra agen for nil comparisons.
Removes an extra LEAL/LEAQ instructions there and usually saves
a useless temporary in the idiom
    if err := foo(); err != nil {...}

Generated code is also less involved:
    MOVQ err+n(SP), AX
    CMPQ AX, $0
(potentially CMPQ n(SP), $0) instead of
    LEAQ err+n(SP), AX
    CMPQ (AX), $0

Update #1914.

R=daniel.morsing, nigeltao, rsc
CC=golang-dev, remy
https://golang.org/cl/6493099
2012-09-11 08:08:40 +02:00
..
cmd cmd/6g, cmd/8g: eliminate extra agen for nil comparisons. 2012-09-11 08:08:40 +02:00
lib9 cmd/gc: string conversion for surrogates 2012-08-30 11:16:55 -07:00
libbio
libmach cmd/5a, cmd/5l: add MULW{T,B} and MULAW{T,B} support for ARM 2012-06-08 02:42:28 +08:00
pkg strings: more thorough Replacer tests. 2012-09-11 14:40:08 +10:00
all.bash build: restore PATH before "dist banner" 2012-06-06 20:19:16 +08:00
all.bat build: restore PATH before "dist banner" 2012-06-06 20:19:16 +08:00
all.rc build: dist-based build for Plan 9 2012-05-01 22:32:46 -07:00
clean.bash
clean.bat
clean.rc build: dist-based build for Plan 9 2012-05-01 22:32:46 -07:00
make.bash build: do more during windows build 2012-03-20 14:04:20 +11:00
make.bat build: do more during windows build 2012-03-20 14:04:20 +11:00
Make.dist
make.rc build: dist-based build for Plan 9 2012-05-01 22:32:46 -07:00
run.bash misc/cgo/{life,stdio}, test/run.go: use test/run.go to do the cgo tests 2012-08-07 09:38:35 +08:00
run.bat misc/cgo/life: disable it temporarily on windows, because go builder fails 2012-09-11 14:06:34 +10:00
run.rc build: dist-based build for Plan 9 2012-05-01 22:32:46 -07:00
sudo.bash cmd/dist, sudo.bash: don't mention sudo.bash if cov or prof is not present 2012-04-02 22:33:38 +08:00