diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-23 13:21:41 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-12-23 13:21:41 +0000 |
commit | a1acf55738a9d6c0376c7d36b27897817685e157 (patch) | |
tree | aac55d98116bb46d383e48bf78e8dee447894f89 /lib/Transforms | |
parent | 417872ed08128e8885b4c7fbaeb2d735c150ea57 (diff) | |
download | external_llvm-a1acf55738a9d6c0376c7d36b27897817685e157.zip external_llvm-a1acf55738a9d6c0376c7d36b27897817685e157.tar.gz external_llvm-a1acf55738a9d6c0376c7d36b27897817685e157.tar.bz2 |
LoopVectorize: Fix accidentaly inverted condition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Vectorize/LoopVectorize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index ddb7f26..1d78fac 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -2181,7 +2181,7 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, unsigned VF) { // 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, |