[CostModel] Unify getMemoryOpCost
authorSam Parker <sam.parker@arm.com>
Fri, 5 Jun 2020 09:09:56 +0000 (10:09 +0100)
committerSam Parker <sam.parker@arm.com>
Fri, 5 Jun 2020 09:13:38 +0000 (10:13 +0100)
commit9303546b423f38d5693565623edcfb832ad8acd5
tree4cbcf9524a14817ba62db3a597678a2db9f4cc94
parent4ffe6bd8a7b0775626bd250f6b67c2254d6d6e74
[CostModel] Unify getMemoryOpCost

Use getMemoryOpCost from the generic implementation of getUserCost
and have getInstructionThroughput return the result of that for loads
and stores.

This also means that the X86 implementation of getUserCost can be
removed with the functionality folded into its getMemoryOpCost.

Differential Revision: https://reviews.llvm.org/D80984
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.h