Xiaolin Zhao
c31a5c571f
cmd/compile: fold negation into addition/subtraction on loong64
...
This change also avoid double negation, and add loong64 codegen for arithmetic tests.
Reduce the number of go toolchain instructions on loong64 as follows.
file before after Δ %
addr2line 279972 279896 -76 -0.0271%
asm 556390 556310 -80 -0.0144%
buildid 272376 272300 -76 -0.0279%
cgo 481534 481550 +16 +0.0033%
compile 2457992 2457396 -596 -0.0242%
covdata 323488 323404 -84 -0.0260%
cover 518630 518490 -140 -0.0270%
dist 340894 340814 -80 -0.0235%
distpack 282568 282484 -84 -0.0297%
doc 790224 789984 -240 -0.0304%
fix 324408 324348 -60 -0.0185%
link 704910 704666 -244 -0.0346%
nm 277220 277144 -76 -0.0274%
objdump 508026 507878 -148 -0.0291%
pack 221810 221786 -24 -0.0108%
pprof 1470284 1469880 -404 -0.0275%
test2json 254896 254852 -44 -0.0173%
trace 1100390 1100074 -316 -0.0287%
vet 781398 781142 -256 -0.0328%
go 1529668 1529128 -540 -0.0353%
gofmt 318668 318568 -100 -0.0314%
total 13795746 13792094 -3652 -0.0265%
Change-Id: I88d1f12cfc4be0e92687c48e06a57213aa484aca
Reviewed-on: https://go-review.googlesource.com/c/go/+/672555
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com >
Reviewed-by: Cherry Mui <cherryyz@google.com >
Reviewed-by: abner chenc <chenguoqi@loongson.cn >
Reviewed-by: Michael Knyszek <mknyszek@google.com >
2025-05-14 17:46:58 -07:00
..
2023-10-19 23:33:25 +00:00
2023-06-16 17:08:43 +00:00
2022-01-10 21:27:19 +00:00
2021-07-14 23:33:46 +00:00
2024-11-22 02:04:41 +00:00
2022-03-24 02:14:15 +00:00
2025-05-14 17:46:58 -07:00
2025-05-08 11:10:33 -07:00
2022-09-27 21:10:19 +00:00
2023-03-28 14:28:33 +00:00
2024-09-17 17:01:20 +00:00
2024-07-23 19:05:35 +00:00
2021-12-05 12:50:44 +00:00
2022-03-24 17:50:47 +00:00
2024-06-07 15:22:22 +00:00
2021-12-13 22:42:08 +00:00
2024-03-25 19:21:35 +00:00
2024-11-14 02:14:13 +00:00
2024-04-05 16:29:58 +00:00
2024-10-28 13:27:58 +00:00
2024-10-23 04:43:01 +00:00
2022-09-28 22:28:39 +00:00
2021-10-30 18:30:05 +00:00
2024-11-18 18:52:54 +00:00
2023-10-19 23:33:25 +00:00
2021-03-05 18:46:43 +00:00
2024-08-07 16:07:33 +00:00
2023-01-31 19:43:07 +00:00
2023-03-06 18:34:24 +00:00
2023-10-19 23:33:25 +00:00
2025-03-11 05:44:15 -07:00
2023-04-11 20:56:32 +00:00
2022-06-28 18:11:31 +00:00
2022-09-08 15:55:44 +00:00
2022-09-19 18:58:26 +00:00
2022-11-17 13:46:05 +00:00
2021-03-23 05:11:09 +00:00
2025-03-10 21:30:51 -07:00
2022-09-28 22:28:39 +00:00
2021-06-14 07:12:37 +00:00
2024-07-29 14:30:07 +00:00
2021-08-09 16:10:20 +00:00
2022-09-02 06:22:23 +00:00
2022-09-02 06:22:23 +00:00
2023-05-12 12:34:59 +00:00
2023-12-14 17:22:18 +00:00
2023-12-14 17:22:18 +00:00
2024-07-22 21:27:37 +00:00
2023-09-08 18:50:24 +00:00
2025-04-04 15:04:34 -07:00
2025-02-19 13:38:58 -08:00
2023-12-05 22:06:07 +00:00
2024-07-22 21:27:37 +00:00
2021-07-28 21:41:07 +00:00
2023-05-23 17:16:35 +00:00
2025-04-04 10:36:58 -07:00
2023-08-18 11:58:37 +00:00
2021-05-26 23:50:32 +00:00
2024-09-18 20:57:20 +00:00
2024-03-25 19:53:03 +00:00
2023-09-08 18:50:24 +00:00
2021-05-26 23:50:32 +00:00
2022-09-07 17:25:59 +00:00
2023-03-06 18:34:24 +00:00
2023-11-16 05:48:00 +00:00
2021-12-03 16:24:32 +00:00
2023-07-10 16:36:41 +00:00
2024-09-30 22:04:40 +00:00
2024-08-07 16:07:55 +00:00
2023-10-19 23:33:25 +00:00
2022-05-27 21:36:06 +00:00
2022-09-27 21:10:19 +00:00
2022-01-11 02:26:58 +00:00
2022-09-23 20:27:09 +00:00
2022-11-16 04:04:52 +00:00
2022-01-11 02:26:58 +00:00
2024-10-22 22:20:29 +00:00
2023-08-18 11:58:37 +00:00
2022-09-15 21:05:02 +00:00
2023-10-19 23:33:25 +00:00
2025-04-22 08:28:13 -07:00
2025-03-24 11:41:09 -07:00
2021-05-26 23:50:45 +00:00
2025-03-06 10:07:17 -08:00
2023-10-19 23:33:25 +00:00
2023-10-19 23:33:25 +00:00
2023-10-19 23:33:25 +00:00
2023-10-19 23:33:25 +00:00
2024-05-15 19:27:25 +00:00
2024-06-07 15:22:22 +00:00
2023-10-19 23:33:25 +00:00
2023-10-19 23:33:25 +00:00
2024-10-21 14:16:20 +00:00
2025-01-28 10:54:43 -08:00
2023-10-19 23:33:25 +00:00
2025-01-28 10:54:43 -08:00
2025-03-06 10:07:17 -08:00
2024-04-04 14:29:45 +00:00
2021-04-23 00:41:01 +00:00
2023-10-19 23:33:25 +00:00
2021-11-05 00:52:06 +00:00
2022-09-27 21:59:19 +00:00
2022-01-10 22:48:40 +00:00
2025-03-06 10:07:17 -08:00
2022-06-30 18:41:59 +00:00
2023-10-19 23:33:25 +00:00
2023-10-19 23:33:25 +00:00
2023-10-19 23:33:25 +00:00
2023-10-19 23:33:25 +00:00
2023-10-19 23:33:25 +00:00
2025-05-12 11:05:28 -07:00
2023-04-14 17:57:36 +00:00
2024-12-06 00:35:41 +00:00
2023-08-22 19:18:21 +00:00
2023-10-19 23:33:25 +00:00
2025-05-08 10:18:37 -07:00
2024-08-07 16:07:33 +00:00
2023-10-19 23:33:25 +00:00
2025-03-11 20:17:36 -07:00
2025-03-11 19:51:59 -07:00
2023-11-08 15:32:14 +00:00
2023-12-01 17:20:08 +00:00
2024-01-08 16:00:53 +00:00
2023-12-18 23:35:19 +00:00
2023-05-12 17:18:08 +00:00
2023-10-19 23:33:25 +00:00
2021-10-26 14:24:17 +00:00
2021-07-22 17:48:41 +00:00
2023-04-19 14:07:00 +00:00
2021-12-03 16:24:32 +00:00
2022-04-07 17:19:55 +00:00
2023-10-19 23:33:25 +00:00
2024-11-14 02:14:13 +00:00
2022-09-24 17:04:15 +00:00
2022-07-19 23:30:49 +00:00
2025-03-11 14:18:43 -07:00
2025-02-13 14:07:47 -08:00
2022-01-11 02:26:58 +00:00
2022-09-23 20:27:09 +00:00
2022-09-27 21:10:19 +00:00
2021-11-12 22:20:51 +00:00
2021-06-24 18:24:24 +00:00
2022-04-21 18:06:38 +00:00
2022-08-31 17:15:15 +00:00
2022-08-31 17:15:15 +00:00
2022-08-31 17:15:15 +00:00
2022-08-31 17:15:15 +00:00
2024-11-11 17:11:50 +00:00
2024-08-09 20:07:54 +00:00
2024-10-28 13:27:58 +00:00
2025-02-06 13:16:59 -08:00
2021-08-23 19:46:36 +00:00
2021-10-06 15:53:04 +00:00
2023-04-28 18:35:43 +00:00