]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize 386's assembly generator
authorBen Shi <powerman1st@163.com>
Thu, 20 Sep 2018 01:26:17 +0000 (01:26 +0000)
committerBen Shi <powerman1st@163.com>
Thu, 20 Sep 2018 06:33:58 +0000 (06:33 +0000)
commit9a033bf9d3f5f7485d82836ec95e51a3fa74a926
treed865940fa200666dd42b338569d5d77eff15605d
parent048c766e660e70e6e3779e479a2ab535b3865a21
cmd/compile: optimize 386's assembly generator

The ADDconstmodify has similar logic with other constmodify like
instructions. This CL optimize them to share code via fallthrough.
And the size of pkg/linux_386/cmd/compile/internal/x86.a decreases
about 0.3KB.

Change-Id: Ibdf06228afde875e8fe8e30851b50ca2be513dd9
Reviewed-on: https://go-review.googlesource.com/136398
Run-TryBot: Ben Shi <powerman1st@163.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/x86/ssa.go