[llvm-commits] [llvm] r171001 - /llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sun Dec 23 05:21:41 PST 2012
Author: d0k
Date: Sun Dec 23 07:21:41 2012
New Revision: 171001
URL: http://llvm.org/viewvc/llvm-project?rev=171001&view=rev
Log:
LoopVectorize: Fix accidentaly inverted condition.
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=171001&r1=171000&r2=171001&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Sun Dec 23 07:21:41 2012
@@ -2181,7 +2181,7 @@
// elements, times the vector width.
unsigned Cost = 0;
- if (RetTy->isVoidTy() || VF != 1) {
+ if (!RetTy->isVoidTy() && VF != 1) {
unsigned InsCost = VTTI->getVectorInstrCost(Instruction::InsertElement,
VectorTy);
unsigned ExtCost = VTTI->getVectorInstrCost(Instruction::ExtractElement,
More information about the llvm-commits
mailing list