Eliminate a branch in FastBitVector setAndCheck, make it vectorizable.
[WebKit-https.git] / Source / WTF / ChangeLog
index b2dd6dc9fb79abac4f58ac05a2d3e36d28448377..877e9ca519187bb71a3486c499a29936ceac295f 100644 (file)
@@ -1,3 +1,15 @@
+2013-10-02  Nadav Rotem  <nrotem@apple.com>
+
+        Eliminate a branch in FastBitVector setAndCheck, make it vectorizable.
+        https://bugs.webkit.org/show_bug.cgi?id=122229
+
+        Reviewed by Geoffrey Garen.
+
+        The CPU is unlikely to predict the branch in setAndCheck. I changed the code to use conditional instructions.
+
+        * wtf/FastBitVector.h:
+        (WTF::FastBitVector::setAndCheck):
+
 2013-10-02  Anders Carlsson  <andersca@apple.com>
 
         Remove Qt code from WTF