[Webkit-unassigned] [Bug 150958] New: B3::reduceStrength should canonicalize integer comparisons

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 5 15:06:51 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=150958

            Bug ID: 150958
           Summary: B3::reduceStrength should canonicalize integer
                    comparisons
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fpizlo at apple.com

Integer comparisons are not necessarily commutative, but you can swap the operands if you also flip the comparison - for example you can turn LessThan(const, var) into GreaterThan(var, const).  We should use this property to "sort" the operands the same way we do for commutative operations.

This will let us get rid of a lot of cases in the B3::lowerToAir() pattern matching.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151105/5b9c33e6/attachment-0001.html>


More information about the webkit-unassigned mailing list