1
0
mirror of https://github.com/golang/go synced 2024-10-03 09:21:21 -06:00
go/src/cmd
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
..
5a 5a, 5l, math: Add support for ABSD, ABSF floating point instructions. 2012-08-03 16:15:11 -04:00
5c cmd/5c, cmd/5g, cmd/5l: fix cross compilation failure on darwin 2012-06-08 13:13:02 +10:00
5g cmd/gc: cache itab lookup in convT2I. 2012-07-03 09:09:05 +10:00
5l cmd/5l: embed $GOARM value into binary as runtime.goarm 2012-09-03 03:51:13 +08:00
6a cmd/6l, cmd/8l, cmd/5l: add AUNDEF instruction 2012-05-30 16:47:56 -04:00
6c cmd/cgo, cmd/cc, cmd/ld: detect dynamic linker automatically 2012-05-05 01:54:16 +08:00
6g cmd/6g, cmd/8g: eliminate extra agen for nil comparisons. 2012-09-11 08:08:40 +02:00
6l undo CL 6498092 / 4ff71bc1a199 2012-09-10 15:52:36 -04:00
8a cmd/6l, cmd/8l, cmd/5l: add AUNDEF instruction 2012-05-30 16:47:56 -04:00
8c cmd/8c: better fix for 64-bit register smash 2012-05-24 23:36:26 -04:00
8g cmd/6g, cmd/8g: eliminate extra agen for nil comparisons. 2012-09-11 08:08:40 +02:00
8l undo CL 6498092 / 4ff71bc1a199 2012-09-10 15:52:36 -04:00
addr2line runtime/pprof: support OS X CPU profiling 2012-02-28 16:18:24 -05:00
api cmd/api: recognize version "devel" as dev. branch and apply -next 2012-08-28 04:03:27 +08:00
cc cmd/cc: allow to call nested packages from within C code 2012-08-04 16:11:53 +04:00
cgo cgo: use debug data section for ELF 2012-09-07 13:32:40 +10:00
cov cmd: update formatting of usage messages 2012-03-05 14:23:00 +11:00
dist cmd/5l: dwarf line number support for Linux/ARM 2012-08-07 10:09:24 +08:00
fix cmd/fix: add rules for net/http -> net/http/httputil renames 2012-03-12 13:25:48 -07:00
gc gc: initial BOM is legal. 2012-09-10 13:03:07 -07:00
go cmd/go: be clear that import loops are bad 2012-09-01 10:34:58 -04:00
godoc godoc: report error for directories with multiple packages 2012-08-09 16:10:46 -07:00
gofmt gofmt: handle comments correctly in rewrites 2012-06-25 13:58:28 -07:00
ld cmd/ld: support zero-filled section for Mach-O files 2012-09-02 04:50:58 +08:00
nm doc: various update to command documents 2012-03-09 01:31:09 +08:00
objdump runtime/pprof: support OS X CPU profiling 2012-02-28 16:18:24 -05:00
pack cmd/pack: remove unused paging logic 2012-07-12 10:14:07 +10:00
prof cmd/prof: don't build on Plan 9 for now. 2012-04-16 17:36:36 -07:00
vet cmd/vet: provide flags to control which tests to run 2012-07-16 14:03:11 -07:00
yacc cmd/yacc: allow leading underscore in token name 2012-09-07 09:31:51 -07:00