Remove TargetInstrInfo::canFoldMemoryOperand
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 19 Jul 2015 10:50:53 +0000 (10:50 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 19 Jul 2015 10:50:53 +0000 (10:50 +0000)
commitc365e7e2b53bfee14a5c7db6ca999ab1a93c6ddd
treed51009c1d4cc8b20c1032a5e091fdd87065917c7
parent5683b550b25bcebb31b8a119234d24dd174ed2bb
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242638 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/TargetInstrInfo.cpp
lib/Target/AMDGPU/AMDGPUInstrInfo.cpp
lib/Target/AMDGPU/AMDGPUInstrInfo.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h