aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorJoel Sing <joel@sing.id.au>2020-10-26 18:35:40 +1100
committerJoel Sing <joel@sing.id.au>2020-10-31 08:31:08 +0000
commit12a2e72065105a7c167d7f41500b5a80547f14d0 (patch)
treeea9434dcc2315664489df6f84412fc594150db5d /src/database/sql
parent48be3ed1394d85af5a7e1a6313fa9cab4d1b7cf9 (diff)
downloadgo-12a2e72065105a7c167d7f41500b5a80547f14d0.tar.xz
cmd/compile: avoid unnecessary sign/zero extension for consts on riscv64
Sign extension for consts is unnecessary and zero extension for consts can be avoided via casts. This removes over 16,000 instructions from the Go binary, in part because it allows for better zero const absorbtion in blocks - for example, `(BEQ (MOVBU (MOVBconst [0])) cond yes no)` now becomes `(BEQZ cond yes no)` when this change is combined with existing rules. Change-Id: I27e791bfa84869639db653af6119f6e10369ba3d Reviewed-on: https://go-review.googlesource.com/c/go/+/265041 Trust: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions