Try to fix a test broken by one of my previous commits.

llvm-svn: 232536
This commit is contained in:
Michael Zolotukhin 2015-03-17 20:31:56 +00:00
parent 9ab09237dc
commit 9ef5671d36
1 changed files with 3 additions and 0 deletions

View File

@ -2638,6 +2638,9 @@ static Value *addFastMathFlag(Value *V) {
/// the result needs to be inserted and/or extracted from vectors.
static unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract,
const TargetTransformInfo &TTI) {
if (Ty->isVoidTy())
return 0;
assert(Ty->isVectorTy() && "Can only scalarize vectors");
unsigned Cost = 0;