Ignore:
Timestamp:
Jul 3, 2014, 2:04:07 PM (11 years ago)
Author:
[email protected]
Message:

SSA DCE should process blocks in forward order
https://bugs.webkit.org/show_bug.cgi?id=134611

Reviewed by Andreas Kling.

  • dfg/DFGDCEPhase.cpp:

(JSC::DFG::DCEPhase::run):

  • ftl/FTLLowerDFGToLLVM.cpp:

(JSC::FTL::LowerDFGToLLVM::addExitArgumentForNode):

  • tests/stress/dead-value-with-mov-hint-in-another-block.js: Added.

(foo):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGDCEPhase.cpp

    r169447 r170769  
    107107       
    108108        if (m_graph.m_form == SSA) {
    109             // Need to process the graph in reverse DFS order, so that we get to the uses
    110             // of a node before we get to the node itself.
    111109            Vector<BasicBlock*> depthFirst;
    112110            m_graph.getBlocksInDepthFirstOrder(depthFirst);
    113             for (unsigned i = depthFirst.size(); i--;)
     111            for (unsigned i = 0; i < depthFirst.size(); ++i)
    114112                fixupBlock(depthFirst[i]);
    115113        } else {
Note: See TracChangeset for help on using the changeset viewer.