diff --git a/js/src/ion/LICM.cpp b/js/src/ion/LICM.cpp index 1c290b07b8d..ca0d51319bc 100644 --- a/js/src/ion/LICM.cpp +++ b/js/src/ion/LICM.cpp @@ -36,7 +36,7 @@ LICM::analyze() continue; // Attempt to optimize loop. - Loop loop(mir, header->backedge(), header, graph); + Loop loop(mir, header->backedge(), header); Loop::LoopReturn lr = loop.init(); if (lr == Loop::LoopReturn_Error) @@ -55,9 +55,8 @@ LICM::analyze() return true; } -Loop::Loop(MIRGenerator *mir, MBasicBlock *footer, MBasicBlock *header, MIRGraph &graph) +Loop::Loop(MIRGenerator *mir, MBasicBlock *footer, MBasicBlock *header) : mir(mir), - graph(graph), footer_(footer), header_(header) { diff --git a/js/src/ion/LICM.h b/js/src/ion/LICM.h index 4d4255f8f4c..167ac5e920d 100644 --- a/js/src/ion/LICM.h +++ b/js/src/ion/LICM.h @@ -36,7 +36,6 @@ class LICM class Loop { MIRGenerator *mir; - MIRGraph &graph; public: // Loop code may return three values: @@ -48,7 +47,7 @@ class Loop public: // A loop is constructed on a backedge found in the control flow graph. - Loop(MIRGenerator *mir, MBasicBlock *header, MBasicBlock *footer, MIRGraph &graph); + Loop(MIRGenerator *mir, MBasicBlock *header, MBasicBlock *footer); // Initializes the loop, finds all blocks and instructions contained in the loop. LoopReturn init();