Bug 152164 - B3 should reduce Shl(<S|Z>Shr(@x, @const), @const) to BitAnd(@x, -(1<<@const))
Summary: B3 should reduce Shl(<S|Z>Shr(@x, @const), @const) to BitAnd(@x, -(1<<@const))
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Robin Morisset
URL:
Keywords: InRadar
Depends on:
Blocks: 152106
  Show dependency treegraph
 
Reported: 2015-12-10 18:59 PST by Filip Pizlo
Modified: 2019-03-18 08:30 PDT (History)
8 users (show)

See Also:


Attachments
Patch (6.57 KB, patch)
2019-02-11 16:57 PST, Robin Morisset
no flags Details | Formatted Diff | Diff
Patch (6.40 KB, patch)
2019-02-11 16:58 PST, Robin Morisset
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews124 for ios-simulator-wk2 (18.31 MB, application/zip)
2019-02-11 19:08 PST, EWS Watchlist
no flags Details
Archive of layout-test-results from ews112 for mac-highsierra (2.20 MB, application/zip)
2019-02-11 19:18 PST, EWS Watchlist
no flags Details
Patch (6.40 KB, patch)
2019-02-12 13:50 PST, Robin Morisset
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews113 for mac-highsierra (2.50 MB, application/zip)
2019-02-12 15:25 PST, EWS Watchlist
no flags Details
Patch (6.55 KB, patch)
2019-03-17 17:38 PDT, Robin Morisset
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews117 for mac-highsierra (2.40 MB, application/zip)
2019-03-17 20:22 PDT, EWS Watchlist
no flags Details
Patch (6.61 KB, patch)
2019-03-17 23:44 PDT, Robin Morisset
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2015-12-10 18:59:05 PST
Things.
Comment 1 Robin Morisset 2019-02-11 16:57:24 PST
Created attachment 361732 [details]
Patch
Comment 2 Robin Morisset 2019-02-11 16:58:31 PST
Created attachment 361733 [details]
Patch

This time without useless include.
Comment 3 EWS Watchlist 2019-02-11 19:08:01 PST
Comment on attachment 361733 [details]
Patch

Attachment 361733 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/11116089

New failing tests:
fast/viewport/ios/device-width-viewport-after-changing-view-scale.html
Comment 4 EWS Watchlist 2019-02-11 19:08:04 PST
Created attachment 361754 [details]
Archive of layout-test-results from ews124 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.6
Comment 5 EWS Watchlist 2019-02-11 19:18:37 PST
Comment on attachment 361733 [details]
Patch

Attachment 361733 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/11116342

New failing tests:
workers/wasm-hashset.html
Comment 6 EWS Watchlist 2019-02-11 19:18:39 PST
Created attachment 361755 [details]
Archive of layout-test-results from ews112 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews112  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 7 Robin Morisset 2019-02-12 13:50:44 PST
Created attachment 361833 [details]
Patch

Same patch as before, to see if the tests were just being flaky (I don't see how a patch to B3 can cause failure of a layout test).
Comment 8 EWS Watchlist 2019-02-12 15:25:46 PST
Comment on attachment 361833 [details]
Patch

Attachment 361833 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/11126320

New failing tests:
http/tests/inspector/network/resource-initiatorNode.html
Comment 9 EWS Watchlist 2019-02-12 15:25:49 PST
Created attachment 361852 [details]
Archive of layout-test-results from ews113 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 10 Robin Morisset 2019-03-17 17:38:21 PDT
Created attachment 364988 [details]
Patch

I've tried and failed to repro the test failures seen by EWS, so let's send it back to the bots and hope it was just some flakiness.
Comment 11 EWS Watchlist 2019-03-17 20:22:15 PDT
Comment on attachment 364988 [details]
Patch

Attachment 364988 [details] did not pass mac-debug-ews (mac):
Output: https://webkit-queues.webkit.org/results/11545722

New failing tests:
workers/wasm-hashset.html
Comment 12 EWS Watchlist 2019-03-17 20:22:17 PDT
Created attachment 364997 [details]
Archive of layout-test-results from ews117 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews117  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 13 Robin Morisset 2019-03-17 21:09:39 PDT
Ok, so this is really not flakiness. I will have to understand why it did not reproduce locally.
Comment 14 Robin Morisset 2019-03-17 23:44:42 PDT
Created attachment 365002 [details]
Patch

Found the problem: I had just forgotten to add the constant to the basic block.
Comment 15 WebKit Commit Bot 2019-03-18 08:29:15 PDT
Comment on attachment 365002 [details]
Patch

Clearing flags on attachment: 365002

Committed r243065: <https://trac.webkit.org/changeset/243065>
Comment 16 WebKit Commit Bot 2019-03-18 08:29:17 PDT
All reviewed patches have been landed.  Closing bug.
Comment 17 Radar WebKit Bug Importer 2019-03-18 08:30:54 PDT
<rdar://problem/48979516>