mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Bug fix: uninitialized variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9576b15fcd
commit
04cc49be65
@ -47,7 +47,7 @@ void RegClass::colorAllRegs()
|
|||||||
void RegClass::pushAllIGNodes()
|
void RegClass::pushAllIGNodes()
|
||||||
{
|
{
|
||||||
bool NeedMoreSpills;
|
bool NeedMoreSpills;
|
||||||
IGNode *IGNodeSpill, *IGNode;
|
IGNode *IGNodeSpill;
|
||||||
|
|
||||||
IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes
|
IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes
|
||||||
|
|
||||||
@ -70,14 +70,14 @@ void RegClass::pushAllIGNodes()
|
|||||||
|
|
||||||
do{
|
do{
|
||||||
|
|
||||||
//get IGNode with min spill cost
|
//get node with min spill cost
|
||||||
IGNodeSpill = getIGNodeWithMinSpillCost();
|
IGNodeSpill = getIGNodeWithMinSpillCost();
|
||||||
|
|
||||||
// push IGNode on to stack
|
// push that node on to stack
|
||||||
IGNodeStack.push( IGNodeSpill );
|
IGNodeStack.push( IGNodeSpill );
|
||||||
|
|
||||||
// set OnStack flag and decrement degree of neighs
|
// set its OnStack flag and decrement degree of neighs
|
||||||
IGNode->pushOnStack();
|
IGNodeSpill->pushOnStack();
|
||||||
|
|
||||||
// now push NON-constrined ones, if any
|
// now push NON-constrined ones, if any
|
||||||
NeedMoreSpills = ! pushUnconstrainedIGNodes();
|
NeedMoreSpills = ! pushUnconstrainedIGNodes();
|
||||||
|
@ -47,7 +47,7 @@ void RegClass::colorAllRegs()
|
|||||||
void RegClass::pushAllIGNodes()
|
void RegClass::pushAllIGNodes()
|
||||||
{
|
{
|
||||||
bool NeedMoreSpills;
|
bool NeedMoreSpills;
|
||||||
IGNode *IGNodeSpill, *IGNode;
|
IGNode *IGNodeSpill;
|
||||||
|
|
||||||
IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes
|
IG.setCurDegreeOfIGNodes(); // calculate degree of IGNodes
|
||||||
|
|
||||||
@ -70,14 +70,14 @@ void RegClass::pushAllIGNodes()
|
|||||||
|
|
||||||
do{
|
do{
|
||||||
|
|
||||||
//get IGNode with min spill cost
|
//get node with min spill cost
|
||||||
IGNodeSpill = getIGNodeWithMinSpillCost();
|
IGNodeSpill = getIGNodeWithMinSpillCost();
|
||||||
|
|
||||||
// push IGNode on to stack
|
// push that node on to stack
|
||||||
IGNodeStack.push( IGNodeSpill );
|
IGNodeStack.push( IGNodeSpill );
|
||||||
|
|
||||||
// set OnStack flag and decrement degree of neighs
|
// set its OnStack flag and decrement degree of neighs
|
||||||
IGNode->pushOnStack();
|
IGNodeSpill->pushOnStack();
|
||||||
|
|
||||||
// now push NON-constrined ones, if any
|
// now push NON-constrined ones, if any
|
||||||
NeedMoreSpills = ! pushUnconstrainedIGNodes();
|
NeedMoreSpills = ! pushUnconstrainedIGNodes();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user