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 | 35b35c5c320a71e4611fe2101452da685f8eeda0 (patch) | |
tree | c2c368975d01bcc5e02f19a769cc59ec5286d914 /include/llvm/CodeGen/LiveIntervalAnalysis.h | |
parent | 42a0f9a4fb74bf11fdc36a73772b7c9b744cc867 (diff) | |
download | external_llvm-35b35c5c320a71e4611fe2101452da685f8eeda0.zip external_llvm-35b35c5c320a71e4611fe2101452da685f8eeda0.tar.gz external_llvm-35b35c5c320a71e4611fe2101452da685f8eeda0.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); |