diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2015-07-19 10:50:53 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2015-07-19 10:50:53 +0000 |
commit | ba51d116c42a5a02bc8128d13c38657160862a15 (patch) | |
tree | b6cea4c7c84c63feb819f7e6bb058ef124d025af /llvm/lib/Target/X86/X86InstrInfo.h | |
parent | 17b906058e219bdb360c9d35dca55bda6153b161 (diff) | |
download | bcm5719-llvm-ba51d116c42a5a02bc8128d13c38657160862a15.tar.gz bcm5719-llvm-ba51d116c42a5a02bc8128d13c38657160862a15.zip |
Remove TargetInstrInfo::canFoldMemoryOperand
canFoldMemoryOperand is not actually used anywhere in the codebase - all existing users instead call foldMemoryOperand directly when they wish to fold and can correctly deduce what they need from the return value.
This patch removes the canFoldMemoryOperand base function and the target implementations; only x86 had a real (bit-rotted) implementation, although AMDGPU had a preparatory stub that had never needed to be completed.
Differential Revision: http://reviews.llvm.org/D11331
llvm-svn: 242638
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.h')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h index bf63336c700..0ef4b088eac 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.h +++ b/llvm/lib/Target/X86/X86InstrInfo.h @@ -342,11 +342,6 @@ public: MachineBasicBlock::iterator InsertPt, MachineInstr *LoadMI) const override; - /// canFoldMemoryOperand - Returns true if the specified load / store is - /// folding is possible. - bool canFoldMemoryOperand(const MachineInstr *, - ArrayRef<unsigned>) const override; - /// 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 /// possible, returns true as well as the new instructions by reference. |