summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElena Demikhovsky <elena.demikhovsky@intel.com>2015-10-22 06:20:29 +0000
committerElena Demikhovsky <elena.demikhovsky@intel.com>2015-10-22 06:20:29 +0000
commit7ad0d563a5415ffb3ad4c11889ecc799dadd1716 (patch)
tree677bc0eabda6ef4abff0366c03dcb943504345ef
parent69306c08234ba591f4e2cb71ea33b671464d0035 (diff)
downloadbcm5719-llvm-7ad0d563a5415ffb3ad4c11889ecc799dadd1716.tar.gz
bcm5719-llvm-7ad0d563a5415ffb3ad4c11889ecc799dadd1716.zip
Partially reverted changes from r250686
Clang runtime failure was reported. Assertion failed: (isExtended() && "Type is not extended!"), function getTypeForEVT I'll need to add a proper handling for PointerType in masked load/store intrinsics. llvm-svn: 250995
-rw-r--r--llvm/lib/Target/X86/X86TargetTransformInfo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index e69b713b8af..d4954d977ea 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -1191,8 +1191,10 @@ int X86TTIImpl::getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
bool X86TTIImpl::isLegalMaskedLoad(Type *DataTy) {
Type *ScalarTy = DataTy->getScalarType();
- int DataWidth = ScalarTy->isPointerTy() ? DL.getPointerSizeInBits() :
- ScalarTy->getPrimitiveSizeInBits();
+ // TODO: Pointers should also be legal,
+ // but it requires additional support in composing intrinsics name.
+ // getPrimitiveSizeInBits() returns 0 for PointerType
+ int DataWidth = ScalarTy->getPrimitiveSizeInBits();
return (DataWidth >= 32 && ST->hasAVX2());
}
OpenPOWER on IntegriCloud