Bug 845222: Remove unused private field Loop::graph. r=jandem

This commit is contained in:
Daniel Holbert 2013-02-26 00:06:37 -08:00
parent aba82f94bc
commit 4765f2bfea
2 changed files with 3 additions and 5 deletions

View File

@ -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)
{

View File

@ -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();