diff options
author | Clement Courbet <courbet@google.com> | 2017-09-25 06:35:16 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2017-09-25 06:35:16 +0000 |
commit | 2807c0a442cc2d5e5f13a5f3f5b2c080aa3e7283 (patch) | |
tree | b1d17f0e84ab95d639a2653b4087661f4da72d4d /llvm/lib/Target/X86/X86TargetTransformInfo.h | |
parent | f9da2fdc78b9418b77eab55f514dbb9c08b78632 (diff) | |
download | bcm5719-llvm-2807c0a442cc2d5e5f13a5f3f5b2c080aa3e7283.tar.gz bcm5719-llvm-2807c0a442cc2d5e5f13a5f3f5b2c080aa3e7283.zip |
[CodeGenPrepare][NFC] Rename TargetTransformInfo::expandMemCmp -> TargetTransformInfo::enableMemCmpExpansion.
Summary:
Right now there are two functions with the same name, one does the work
and the other one returns true if expansion is needed. Rename
TargetTransformInfo::expandMemCmp to make it more consistent with other
members of TargetTransformInfo.
Remove the unused Instruction* parameter.
Differential Revision: https://reviews.llvm.org/D38165
llvm-svn: 314096
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.h')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetTransformInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.h b/llvm/lib/Target/X86/X86TargetTransformInfo.h index 22dc7b70842..0d2c90dc58b 100644 --- a/llvm/lib/Target/X86/X86TargetTransformInfo.h +++ b/llvm/lib/Target/X86/X86TargetTransformInfo.h @@ -127,7 +127,7 @@ public: bool hasDivRemOp(Type *DataType, bool IsSigned); bool areInlineCompatible(const Function *Caller, const Function *Callee) const; - bool expandMemCmp(Instruction *I, unsigned &MaxLoadSize); + bool enableMemCmpExpansion(unsigned &MaxLoadSize); bool enableInterleavedAccessVectorization(); private: int getGSScalarCost(unsigned Opcode, Type *DataTy, bool VariableMask, |