diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-08-30 05:52:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-08-30 05:52:20 +0000 |
commit | 242a992fc30a1466f3ab7f4d14b2de9a6c954d5e (patch) | |
tree | c2c368975d01bcc5e02f19a769cc59ec5286d914 /include/llvm/CodeGen/LiveIntervalAnalysis.h | |
parent | c93e13319113e07961cac18ba0b2fffca22f8300 (diff) | |
download | external_llvm-242a992fc30a1466f3ab7f4d14b2de9a6c954d5e.zip external_llvm-242a992fc30a1466f3ab7f4d14b2de9a6c954d5e.tar.gz external_llvm-242a992fc30a1466f3ab7f4d14b2de9a6c954d5e.tar.bz2 |
Add a variant of foldMemoryOperand to fold any load / store, not just load / store from / to stack slots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveIntervalAnalysis.h')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 59d482e..bf78475 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -242,11 +242,13 @@ namespace llvm { bool isReMaterializable(const LiveInterval &li, const VNInfo *ValNo, MachineInstr *MI); - /// tryFoldMemoryOperand - Attempts to fold a spill / restore from slot - /// to reg into ith operand of specified MI. If it is successul, MI is - /// updated with the newly created MI and returns true. - bool tryFoldMemoryOperand(MachineInstr* &MI, VirtRegMap &vrm, unsigned index, - unsigned i, int slot, unsigned reg); + /// tryFoldMemoryOperand - Attempts to fold either a spill / restore from + /// slot / to reg or any rematerialized load into ith operand of specified + /// MI. If it is successul, MI is updated with the newly created MI and + /// returns true. + bool tryFoldMemoryOperand(MachineInstr* &MI, VirtRegMap &vrm, + unsigned index, unsigned i, bool isSS, + MachineInstr *DefMI, int slot, unsigned reg); static LiveInterval createInterval(unsigned Reg); |