B3 should reduce obvious forms of Shl(SShr)
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jan 2016 20:03:01 +0000 (20:03 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jan 2016 20:03:01 +0000 (20:03 +0000)
commit92ab3dabb78fbeaecc94189e002fdbde940bd541
treed8e4dbae468ad2cc4a9914004348027df06af76e
parent93bcd8c0859c9c9dfad494a2e3ad3045711aef38
B3 should reduce obvious forms of Shl(SShr)
https://bugs.webkit.org/show_bug.cgi?id=153362

Reviewed by Mark Lam and Saam Barati.

This is a 40% speed-up in AsmBench-0.9/dry.c.js.

* b3/B3ReduceStrength.cpp:
* b3/testb3.cpp:
(JSC::B3::testStore16Load16Z):
(JSC::B3::testSShrShl32):
(JSC::B3::testSShrShl64):
(JSC::B3::zero):
(JSC::B3::run):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/b3/B3ReduceStrength.cpp
Source/JavaScriptCore/b3/testb3.cpp