diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-12-21 01:24:36 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-12-21 01:24:36 +0000 |
commit | a4b53f20a383947767fe82f63b5a5149a0b4e0c4 (patch) | |
tree | f7e86262fb5a3e0f8e611af5f7fab69365b6243b /llvm/lib/Target/TargetTransformImpl.cpp | |
parent | 2be6b72ce0d28d1934762095cdcc3ab53437e6d8 (diff) | |
download | bcm5719-llvm-a4b53f20a383947767fe82f63b5a5149a0b4e0c4.tar.gz bcm5719-llvm-a4b53f20a383947767fe82f63b5a5149a0b4e0c4.zip |
BB-Vectorizer: Check the cost of the store pointer type
and not the return type, which is void. A number of test
cases fail after adding the assertion in TTImpl.
llvm-svn: 170828
Diffstat (limited to 'llvm/lib/Target/TargetTransformImpl.cpp')
-rw-r--r-- | llvm/lib/Target/TargetTransformImpl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetTransformImpl.cpp b/llvm/lib/Target/TargetTransformImpl.cpp index 7f9fdfc938f..43204370202 100644 --- a/llvm/lib/Target/TargetTransformImpl.cpp +++ b/llvm/lib/Target/TargetTransformImpl.cpp @@ -340,6 +340,7 @@ unsigned VectorTargetTransformImpl::getMemoryOpCost(unsigned Opcode, Type *Src, unsigned Alignment, unsigned AddressSpace) const { + assert(!Src->isVoidTy() && "Invalid type"); std::pair<unsigned, MVT> LT = getTypeLegalizationCost(Src); // Assume that all loads of legal types cost 1. |