⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 197134 in webkit


Ignore:
Timestamp:
Feb 25, 2016, 2:37:44 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[JSC] Remove a useless "Move" in the lowering of Select
​https://bugs.webkit.org/show_bug.cgi?id=154670

Patch by Benjamin Poulain <​bpoulain@apple.com> on 2016-02-25
Reviewed by Geoffrey Garen.

I left the Move instruction when creating the aliasing form
of Select.

On ARM64, that meant a useless move for any case that can't
be coalesced.

On x86, that meant an extra constraint on child2, making it
stupidly hard to alias child1.

  • b3/B3LowerToAir.cpp:

(JSC::B3::Air::LowerToAir::createSelect): Deleted.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r197061 r197134  
     12016-02-25  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        [JSC] Remove a useless "Move" in the lowering of Select
     4        https://bugs.webkit.org/show_bug.cgi?id=154670
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        I left the Move instruction when creating the aliasing form
     9        of Select.
     10
     11        On ARM64, that meant a useless move for any case that can't
     12        be coalesced.
     13
     14        On x86, that meant an extra constraint on child2, making it
     15        stupidly hard to alias child1.
     16
     17        * b3/B3LowerToAir.cpp:
     18        (JSC::B3::Air::LowerToAir::createSelect): Deleted.
     19
    1202016-02-24  Joseph Pecoraro  <pecoraro@apple.com>
    221
  • trunk/Source/JavaScriptCore/b3/B3LowerToAir.cpp

    r197037 r197134  
    16081608                Tmp thenCase = tmp(m_value->child(1));
    16091609                Tmp elseCase = tmp(m_value->child(2));
    1610                 append(relaxedMoveForType(m_value->type()), tmp(m_value->child(2)), result);
    16111610                return Inst(
    16121611                    opcode, m_value, condition,
Note: See TracChangeset for help on using the changeset viewer.