aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorRuchira Sasanka <sasanka@students.uiuc.edu>2001-11-15 22:02:06 +0000
committerRuchira Sasanka <sasanka@students.uiuc.edu>2001-11-15 22:02:06 +0000
commitf90870f622a18ae14d72d491eaf6e8dcfe431aff (patch)
treee08846fadef705972d682b6b1b60a803b515fe9a /lib/CodeGen
parent07c7086bd29b5c7223945cbdeae48494874de38f (diff)
downloadexternal_llvm-f90870f622a18ae14d72d491eaf6e8dcfe431aff.zip
external_llvm-f90870f622a18ae14d72d491eaf6e8dcfe431aff.tar.gz
external_llvm-f90870f622a18ae14d72d491eaf6e8dcfe431aff.tar.bz2
Commented some popTempArg.. since it leads to a bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1326 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/RegAlloc/PhyRegAlloc.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index a4f7f92..b7ca871 100644
--- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -426,7 +426,8 @@ void PhyRegAlloc::updateMachineCode()
// reset the stack offset for temporary variables since we may
// need that to spill
- mcInfo.popAllTempValues(TM);
+ //mcInfo.popAllTempValues(TM);
+ // TODO ** : do later
//for(MachineInstr::val_op_const_iterator OpI(MInst);!OpI.done();++OpI) {
@@ -1026,7 +1027,9 @@ void PhyRegAlloc::colorCallRetArgs()
// Tmp stack poistions are needed by some calls that have spilled args
// So reset it before we call each such method
- mcInfo.popAllTempValues(TM);
+ //mcInfo.popAllTempValues(TM);
+
+
if( (TM.getInstrInfo()).isCall( OpCode ) )
MRI.colorCallArgs( CRMI, LRI, AI, *this );
@@ -1200,6 +1203,8 @@ void PhyRegAlloc::allocateRegisters()
// a poistion for such spilled LRs
allocateStackSpace4SpilledLRs();
+ mcInfo.popAllTempValues(TM); // TODO **Check
+
// color incoming args and call args
colorIncomingArgs();
colorCallRetArgs();
@@ -1211,13 +1216,16 @@ void PhyRegAlloc::allocateRegisters()
printMachineCode(); // only for DEBUGGING
}
- /*
+
+
+ /*
printMachineCode(); // only for DEBUGGING
cout << "\nAllocted for method " << Meth->getName();
char ch;
cin >> ch;
*/
+
}