aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuchira Sasanka <sasanka@students.uiuc.edu>2001-11-15 22:03:04 +0000
committerRuchira Sasanka <sasanka@students.uiuc.edu>2001-11-15 22:03:04 +0000
commit3113375f90848ee32c990f6afbc778f198f6eca5 (patch)
treeab19c8bb75be15ccda7ca47111d4df6c06e67244
parentf90870f622a18ae14d72d491eaf6e8dcfe431aff (diff)
commented out popAllTempValues since it leads to a bug - see code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1327 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/SparcV9RegInfo.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9RegInfo.cpp b/lib/Target/SparcV9/SparcV9RegInfo.cpp
index 5103ae71bf..1876e458a0 100644
--- a/lib/Target/SparcV9/SparcV9RegInfo.cpp
+++ b/lib/Target/SparcV9/SparcV9RegInfo.cpp
@@ -1111,7 +1111,18 @@ void UltraSparcRegInfo::insertCallerSavingCode(const MachineInstr *MInst,
// assert( (getInstrInfo()).isCall( MInst->getOpCode() ) );
// Clear the temp area of the stack
- PRA.mcInfo.popAllTempValues(target);
+ //PRA.mcInfo.popAllTempValues(target);
+ // TODO*** Don't do this since we can have a situation lik
+ /*
+
+ stx %o1 %i6 1999 <--- inserted by this code
+ stx %o5 %i6 2007
+
+ *****
+ stx %o1 %i6 2007 ???? <-- inserted by statck2stack call arg
+
+ */
+
hash_set<unsigned> PushedRegSet;
@@ -1279,7 +1290,9 @@ void UltraSparcRegInfo::insertCallerSavingCode(const MachineInstr *MInst,
} // for each value in the LV set after instruction
// Clear the temp area of the stack
- PRA.mcInfo.popAllTempValues(target);
+ // PRA.mcInfo.popAllTempValues(target);
+ // TODO *** see above call - optimize later
+
}