Closed Bug 1441521 Opened 6 years ago Closed 6 years ago

[MIPS] Optimize comparation with small constants

Categories

(Core :: JavaScript Engine: JIT, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: dragan.mladjenovic, Assigned: dragan.mladjenovic)

Details

Attachments

(1 file)

      No description provided.
Attached patch bug1441521.patchSplinter Review
This patch tries to embed small integers into slti/sltiu immediate instructions instead loading them into register while branching or doing cmpSet.
Assignee: nobody → dragan.mladjenovic
Status: NEW → ASSIGNED
Attachment #8954344 - Flags: review?(yuyin-hf)
Priority: -- → P5
hi, Mladjenovic

thanks for this patch, it looks good for me.

I just want to build it and run octane to see how the performance improvement, but 'js' program failed because of :

MacroAssembler-mips-shared-inl.h:1023
MOZ_RELEASE_ASSERT(!JitOptions.spectreIndexMasking);

and lots of jit-tests failed because of this.

Do you have the same phenomenon?
Sorry, I mean this patch is look good to me.

But there have some other issues which cause jit-test failed before this patch.
Attachment #8954344 - Flags: review?(yuyin-hf) → review+
(In reply to yuyin from comment #2)
> hi, Mladjenovic
> 
> thanks for this patch, it looks good for me.
> 
> I just want to build it and run octane to see how the performance
> improvement, but 'js' program failed because of :
> 
> MacroAssembler-mips-shared-inl.h:1023
> MOZ_RELEASE_ASSERT(!JitOptions.spectreIndexMasking);
> 
> and lots of jit-tests failed because of this.
> 
> Do you have the same phenomenon?

Sorry for the late replay.

The blame for that is all on me. You have to run js-shell with "--spectre-mitigations=off" to get past this.
I've not pushed Spectree mitigation primitives implementation for MIPS. I'm still waiting for the Spectree mitigation work to stabilize in order for me to gather any data on performance overhead. (Octane benchmark doesn't seem to be affected in my early benchmarks, the again it maybe isn't suitable to test this) I could post the patch as early as tomorrow? I would be grateful If you could then post the results of benchmarks on Loongson with and without the spectree mitigation enabled.
Thank you.

and please fell free to ask me if you want get any results of benchmarks on Loongson. You can also send email to me directly if you like at anytime

(In reply to Dragan Mladjenovic from comment #4)

> 
> The blame for that is all on me. You have to run js-shell with
> "--spectre-mitigations=off" to get past this.
> I've not pushed Spectree mitigation primitives implementation for MIPS. I'm
> still waiting for the Spectree mitigation work to stabilize in order for me
> to gather any data on performance overhead. (Octane benchmark doesn't seem
> to be affected in my early benchmarks, the again it maybe isn't suitable to
> test this) I could post the patch as early as tomorrow? I would be grateful
> If you could then post the results of benchmarks on Loongson with and
> without the spectree mitigation enabled.
Keywords: checkin-needed
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5417950f6fc2
[MIPS] Optimize comparation with small constants. r=yuyin
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5417950f6fc2
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: