[LSR / TTI / SystemZ] Eliminate TargetTransformInfo::isFoldableMemAccess()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 9 Aug 2017 11:28:01 +0000 (11:28 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 9 Aug 2017 11:28:01 +0000 (11:28 +0000)
commit6228aeda651dc1b8afe61254b3f966ea25d78559
treeccdf0809e6415be72f31d1972995d45b671247b8
parent5052771af344914dd68dc2e8000837b6a898a941
[LSR / TTI / SystemZ]  Eliminate TargetTransformInfo::isFoldableMemAccess()

isLegalAddressingMode() has recently gained the extra optional Instruction*
parameter, and therefore it can now do the job that previously only
isFoldableMemAccess() could do.

The SystemZ implementation of isLegalAddressingMode() has gained the
functionality of checking for offsets, which used to be done with
isFoldableMemAccess().

The isFoldableMemAccess() hook has been removed everywhere.

Review: Quentin Colombet, Ulrich Weigand
https://reviews.llvm.org/D35933

llvm-svn: 310463
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.h
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/test/CodeGen/Hexagon/swp-const-tc.ll