Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Issue 2909913002: MIPS64: Add optimizations to li and Dsubu macro. (Closed)

Created:
3 years, 6 months ago by miran.karic
Modified:
3 years, 6 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

MIPS64: Add optimizations to li and Dsubu macro. Here we optimize Dsubu by instead of loading imm and subtracting, we load -imm and perform addition when loading -imm takes less instructions than loading imm. Similarily li is optimized by loading -imm and performing addition or loading ~imm and inverting bits using nor when one of these loads takes two instructions less than loading imm, saving at least one instruction. Tests are adjusted to cover these optimizations. BUG= TEST=cctest/test-assembler-mips/li_macro cctest/test-assembler-mips/Dsubu Review-Url: https://codereview.chromium.org/2909913002 Cr-Commit-Position: refs/heads/master@{#46001} Committed: https://chromium.googlesource.com/v8/v8/+/37b461a932362779dbe3dd8b9b0bc8adddfc0b29

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove DCHECK, adjust test. #

Patch Set 3 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -159 lines) Patch
M src/mips64/macro-assembler-mips64.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 2 4 chunks +276 lines, -151 lines 0 comments Download
M test/cctest/test-assembler-mips64.cc View 1 2 9 chunks +40 lines, -8 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
dusan.simicic
Remove following lines from description: MIPS64: Fix missing parentheses failure. Missing parentheses are causing compilation ...
3 years, 6 months ago (2017-05-29 16:24:36 UTC) #3
miran.karic
On 2017/05/29 16:24:36, dusan.simicic wrote: > Remove following lines from description: > > MIPS64: Fix ...
3 years, 6 months ago (2017-05-30 08:51:26 UTC) #5
dusan.simicic
lgtm
3 years, 6 months ago (2017-05-30 13:35:09 UTC) #6
Ilija.Pavlovic1
lgtm
3 years, 6 months ago (2017-05-31 07:04:28 UTC) #8
ivica.bogosavljevic
https://codereview.chromium.org/2909913002/diff/1/src/mips64/macro-assembler-mips64.cc File src/mips64/macro-assembler-mips64.cc (right): https://codereview.chromium.org/2909913002/diff/1/src/mips64/macro-assembler-mips64.cc#newcode665 src/mips64/macro-assembler-mips64.cc:665: DCHECK(rt.imm64_ != std::numeric_limits<int32_t>::min()); I don't understand why is this ...
3 years, 6 months ago (2017-06-05 12:32:12 UTC) #10
miran.karic
https://codereview.chromium.org/2909913002/diff/1/src/mips64/macro-assembler-mips64.cc File src/mips64/macro-assembler-mips64.cc (right): https://codereview.chromium.org/2909913002/diff/1/src/mips64/macro-assembler-mips64.cc#newcode665 src/mips64/macro-assembler-mips64.cc:665: DCHECK(rt.imm64_ != std::numeric_limits<int32_t>::min()); On 2017/06/05 12:32:12, ivica.bogosavljevic wrote: > ...
3 years, 6 months ago (2017-06-06 06:20:44 UTC) #11
miran.karic
Uploaded a new patch set, PTAL.
3 years, 6 months ago (2017-06-07 13:59:21 UTC) #12
Ilija.Pavlovic1
lgtm
3 years, 6 months ago (2017-06-08 07:19:11 UTC) #14
ivica.bogosavljevic
lgtm
3 years, 6 months ago (2017-06-14 06:58:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2909913002/20001
3 years, 6 months ago (2017-06-14 08:31:27 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/builds/23781) v8_linux64_gcc_compile_dbg on master.tryserver.v8 (JOB_FAILED, ...
3 years, 6 months ago (2017-06-14 08:32:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2909913002/40001
3 years, 6 months ago (2017-06-19 11:55:22 UTC) #24
commit-bot: I haz the power
3 years, 6 months ago (2017-06-19 12:20:27 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/37b461a932362779dbe3dd8b9b0bc8adddf...

Powered by Google App Engine
This is Rietveld 408576698