diff options
author | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-11-15 22:03:04 +0000 |
---|---|---|
committer | Ruchira Sasanka <sasanka@students.uiuc.edu> | 2001-11-15 22:03:04 +0000 |
commit | edbf52c7f92334d4f8e2b7edabfaa795eb990715 (patch) | |
tree | 613014c6157d834572dbd007da42e97636165824 /llvm/lib/Target/Sparc/SparcRegInfo.cpp | |
parent | 7dfa1650a281328921c3d4de66d91679239d97f0 (diff) | |
download | bcm5719-llvm-edbf52c7f92334d4f8e2b7edabfaa795eb990715.tar.gz bcm5719-llvm-edbf52c7f92334d4f8e2b7edabfaa795eb990715.zip |
commented out popAllTempValues since it leads to a bug - see code
llvm-svn: 1327
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcRegInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcRegInfo.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/SparcRegInfo.cpp b/llvm/lib/Target/Sparc/SparcRegInfo.cpp index 5103ae71bf2..1876e458a0a 100644 --- a/llvm/lib/Target/Sparc/SparcRegInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcRegInfo.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 + } |