summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRuchira Sasanka <sasanka@students.uiuc.edu>2001-11-10 21:21:36 +0000
committerRuchira Sasanka <sasanka@students.uiuc.edu>2001-11-10 21:21:36 +0000
commitd1d5e97431159beba483d14552cffcf6aeba7318 (patch)
tree3c1f6dde8395925eab32425fa0db10601c9df14f /llvm/lib
parent0c0859846a9d49f9da3a0f7c8d6e062a61b0162e (diff)
downloadbcm5719-llvm-d1d5e97431159beba483d14552cffcf6aeba7318.tar.gz
bcm5719-llvm-d1d5e97431159beba483d14552cffcf6aeba7318.zip
Changed code to ignore Phi Nodes in PhyRegAlloc
llvm-svn: 1253
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp7
-rw-r--r--llvm/lib/CodeGen/RegAlloc/RegClass.cpp2
2 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index 8e4530c15d4..bc825657344 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -355,6 +355,11 @@ void PhyRegAlloc::updateMachineCode()
MachineInstr *MInst = *MInstIterator;
+ // do not process Phis
+ if( (TM.getInstrInfo()).isPhi( MInst->getOpCode()) )
+ continue;
+
+
// if this machine instr is call, insert caller saving code
if( (TM.getInstrInfo()).isCall( MInst->getOpCode()) )
@@ -579,7 +584,7 @@ void PhyRegAlloc::insertCode4SpilledLR(const LiveRange *LR,
} // if !DEF
cerr << "\nFor Inst " << *MInst;
- cerr << "\n - SPILLED LR:"; LR->printSet();
+ cerr << " - SPILLED LR: "; LR->printSet();
cerr << "\n - Added Instructions:";
if( MIBef ) cerr << *MIBef;
cerr << *AdIMid;
diff --git a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp b/llvm/lib/CodeGen/RegAlloc/RegClass.cpp
index 1219147ab2f..d0f1c444300 100644
--- a/llvm/lib/CodeGen/RegAlloc/RegClass.cpp
+++ b/llvm/lib/CodeGen/RegAlloc/RegClass.cpp
@@ -82,6 +82,8 @@ void RegClass::pushAllIGNodes()
// now push NON-constrined ones, if any
NeedMoreSpills = ! pushUnconstrainedIGNodes();
+ cerr << "\nConstrained IG Node found !@!" << IGNodeSpill->getIndex();
+
} while( NeedMoreSpills ); // repeat until we have pushed all
}
OpenPOWER on IntegriCloud