]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify AMD64's assembly generator
authorBen Shi <powerman1st@163.com>
Tue, 18 Sep 2018 01:53:42 +0000 (01:53 +0000)
committerBen Shi <powerman1st@163.com>
Wed, 19 Sep 2018 01:35:46 +0000 (01:35 +0000)
commitd17ac291584f6f518430ea3123e0ec9a7658c950
tree54ee242c9f9662fc7f5602bed2a9d560b6bc0ea0
parentd24ec86e4f64302e91d8062eabfcd21296bb9b04
cmd/compile: simplify AMD64's assembly generator

AMD64's ADDQconstmodify/ADDLconstmodify have similar logic with
other constmodify like operators, but seperated case statements.
This CL simplify them with a fallthrough.

Change-Id: Ia73ffeaddc5080182f68c06c9d9b48fe32a14e38
Reviewed-on: https://go-review.googlesource.com/135855
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/amd64/ssa.go