diff options
author | Craig Topper <craig.topper@intel.com> | 2019-03-21 17:38:52 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-03-21 17:38:52 +0000 |
commit | 9f0b17a248c536b430c200e86f6017abf0e67ed3 (patch) | |
tree | 2e629e18b04d166c6998c993c6986ae0edb4b527 /llvm/lib/Target/X86/X86TargetTransformInfo.h | |
parent | f2f139e9efe592626521805213eba5565629c1b3 (diff) | |
download | bcm5719-llvm-9f0b17a248c536b430c200e86f6017abf0e67ed3.tar.gz bcm5719-llvm-9f0b17a248c536b430c200e86f6017abf0e67ed3.zip |
[ScalarizeMaskedMemIntrin] Add support for scalarizing expandload and compressstore intrinsics.
This adds support for scalarizing these intrinsics as well the X86TargetTransformInfo support to avoid scalarizing them in the cases X86 can handle.
I've omitted handling special cases for constant masks for this first pass. Though CodeGenPrepare can constant fold the branch conditions and remove some of the control flow anyway.
Fixes PR40994 and is covers most of PR3666. Might want to implement constant masks to close that.
Differential Revision: https://reviews.llvm.org/D59180
llvm-svn: 356687
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.h')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetTransformInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.h b/llvm/lib/Target/X86/X86TargetTransformInfo.h index 8bfcd07be04..5dce3a7839d 100644 --- a/llvm/lib/Target/X86/X86TargetTransformInfo.h +++ b/llvm/lib/Target/X86/X86TargetTransformInfo.h @@ -184,6 +184,8 @@ public: bool isLegalMaskedStore(Type *DataType); bool isLegalMaskedGather(Type *DataType); bool isLegalMaskedScatter(Type *DataType); + bool isLegalMaskedExpandLoad(Type *DataType); + bool isLegalMaskedCompressStore(Type *DataType); bool hasDivRemOp(Type *DataType, bool IsSigned); bool isFCmpOrdCheaperThanFCmpZero(Type *Ty); bool areInlineCompatible(const Function *Caller, |