diff options
| author | Keith Randall <khr@golang.org> | 2024-06-12 18:25:55 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2024-07-23 20:53:57 +0000 |
| commit | f66db499769002f1f804f52234b7c3e5917bbad6 (patch) | |
| tree | f4a51d385077e00ee64d98f1561e69ee7ee290d7 /src/encoding/json | |
| parent | d15525d596eb49eba058178e3b633b5a2ebb4766 (diff) | |
| download | go-f66db499769002f1f804f52234b7c3e5917bbad6.tar.xz | |
cmd/compile: store constant floats using integer constants
x86 is better at storing constant ints than constant floats.
(It uses a constant directly in the instruction stream, instead of
loading it from a constant global memory.)
Noticed as part of #67957
Change-Id: I9b7b586ad8e0fe9ce245324f020e9526f82b209d
Reviewed-on: https://go-review.googlesource.com/c/go/+/592596
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
