WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
227138
Add a new pattern to B3ReduceStrength based on
Bug 226984
https://bugs.webkit.org/show_bug.cgi?id=227138
Summary
Add a new pattern to B3ReduceStrength based on Bug 226984
Yijia Huang
Reported
2021-06-17 12:10:46 PDT
...
Attachments
Patch
(7.59 KB, patch)
2021-06-17 22:23 PDT
,
Yijia Huang
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(7.59 KB, patch)
2021-06-17 22:25 PDT
,
Yijia Huang
no flags
Details
Formatted Diff
Diff
Patch
(7.61 KB, patch)
2021-06-17 23:31 PDT
,
Yijia Huang
no flags
Details
Formatted Diff
Diff
Patch
(7.70 KB, patch)
2021-06-18 10:03 PDT
,
Yijia Huang
no flags
Details
Formatted Diff
Diff
Patch
(7.66 KB, patch)
2021-06-18 10:38 PDT
,
Yijia Huang
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Yijia Huang
Comment 1
2021-06-17 22:23:32 PDT
Created
attachment 431754
[details]
Patch
Yijia Huang
Comment 2
2021-06-17 22:25:42 PDT
Created
attachment 431755
[details]
Patch
Yijia Huang
Comment 3
2021-06-17 23:31:51 PDT
Created
attachment 431758
[details]
Patch
Yijia Huang
Comment 4
2021-06-18 10:03:51 PDT
Created
attachment 431779
[details]
Patch
Filip Pizlo
Comment 5
2021-06-18 10:16:35 PDT
Comment on
attachment 431779
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431779&action=review
I think this is correct, but I'd make the two small changes I suggest.
> Source/JavaScriptCore/b3/B3ReduceStrength.cpp:1044 > + && !(m_value->child(0)->child(0)->hasInt())
I don't think you need this condition. Your transformation is still correct even if that value is a constant. If it was a constant then it would probably also get constant-folded, but you don't have to worry about that. It's better to just have only the checks you really need.
> Source/JavaScriptCore/b3/B3ReduceStrength.cpp:1048 > + int64_t const1 = m_value->child(0)->child(1)->asInt(); > + uint64_t const2 = m_value->child(1)->asInt();
Can we give these better names? Like, I'd use shiftAmount instead of const1. And I'd use mask for const2.
Yijia Huang
Comment 6
2021-06-18 10:38:40 PDT
Created
attachment 431780
[details]
Patch
EWS
Comment 7
2021-06-18 11:25:57 PDT
Committed
r279042
(
238962@main
): <
https://commits.webkit.org/238962@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 431780
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug