[llvm] r232536 - Try to fix a test broken by one of my previous commits.
Michael Zolotukhin
mzolotukhin at apple.com
Tue Mar 17 13:31:56 PDT 2015
Author: mzolotukhin
Date: Tue Mar 17 15:31:56 2015
New Revision: 232536
URL: http://llvm.org/viewvc/llvm-project?rev=232536&view=rev
Log:
Try to fix a test broken by one of my previous commits.
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=232536&r1=232535&r2=232536&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Tue Mar 17 15:31:56 2015
@@ -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;
More information about the llvm-commits
mailing list