Bug 227195 - Add a new pattern to instruction selector to utilize SMSUBL supported by ARM64
Summary: Add a new pattern to instruction selector to utilize SMSUBL supported by ARM64
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yijia Huang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-20 10:53 PDT by Yijia Huang
Modified: 2021-06-21 20:00 PDT (History)
8 users (show)

See Also:


Attachments
Patch (13.53 KB, patch)
2021-06-21 07:46 PDT, Yijia Huang
no flags Details | Formatted Diff | Diff
Patch (15.41 KB, patch)
2021-06-21 11:15 PDT, Yijia Huang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yijia Huang 2021-06-20 10:53:13 PDT
...
Comment 1 Yijia Huang 2021-06-21 07:46:53 PDT
Created attachment 431859 [details]
Patch
Comment 2 Keith Miller 2021-06-21 11:08:44 PDT
Comment on attachment 431859 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=431859&action=review

looks good you should probably remove your comments before we land this though.

> Source/JavaScriptCore/b3/B3LowerToAir.cpp:2589
> +                    if (m_locked.contains(v->child(0)) || m_locked.contains(v->child(1))) // <---- keep this? Why?

Per offline discussion, we need this in case we have a pattern that matches against the Mul(Something(...), Something(...)).

> Source/JavaScriptCore/b3/B3LowerToAir.cpp:2604
> +                            if (m_locked.contains(v->child(0))) // <---- keep this? Why?

Ditto. e.g. SExt32(Something(...))

> Source/JavaScriptCore/b3/testb3_2.cpp:1221
> +    Value* addValue = root->appendNew<Value>(proc, Sub, Origin(), aValue, mulValue);

nit: should probably be subValue.
Comment 3 Yijia Huang 2021-06-21 11:15:27 PDT
Created attachment 431882 [details]
Patch
Comment 4 Keith Miller 2021-06-21 11:18:57 PDT
Comment on attachment 431882 [details]
Patch

r=me.
Comment 5 EWS 2021-06-21 11:56:07 PDT
Committed r279075 (238995@main): <https://commits.webkit.org/238995@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 431882 [details].