summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-09 20:43:13 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-09 20:43:13 +0000
commit1f32340d95ac480bfc74bcfd00fd5cffbe078652 (patch)
tree8ec8bd3b40b8d271273da288899b7e95a68309b4 /include
parent9c50e8b89076eacf8eb588449d5425cb9a755e9e (diff)
downloadllvm-1f32340d95ac480bfc74bcfd00fd5cffbe078652.tar.gz
llvm-1f32340d95ac480bfc74bcfd00fd5cffbe078652.tar.bz2
llvm-1f32340d95ac480bfc74bcfd00fd5cffbe078652.tar.xz
Automatically fold COPY instructions into stack load/store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 4f3b7ae304..b505d16b57 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -478,9 +478,7 @@ public:
/// folding is possible.
virtual
bool canFoldMemoryOperand(const MachineInstr *MI,
- const SmallVectorImpl<unsigned> &Ops) const {
- return false;
- }
+ const SmallVectorImpl<unsigned> &Ops) const =0;
/// unfoldMemoryOperand - Separate a single instruction which folded a load or
/// a store or a load and a store into two or more instruction. If this is
@@ -643,6 +641,8 @@ public:
bool NewMI = false) const;
virtual bool findCommutedOpIndices(MachineInstr *MI, unsigned &SrcOpIdx1,
unsigned &SrcOpIdx2) const;
+ virtual bool canFoldMemoryOperand(const MachineInstr *MI,
+ const SmallVectorImpl<unsigned> &Ops) const;
virtual bool PredicateInstruction(MachineInstr *MI,
const SmallVectorImpl<MachineOperand> &Pred) const;
virtual void reMaterialize(MachineBasicBlock &MBB,