diff options
author | Gil Rapaport <gil.rapaport@intel.com> | 2017-03-13 10:23:46 +0000 |
---|---|---|
committer | Gil Rapaport <gil.rapaport@intel.com> | 2017-03-13 10:23:46 +0000 |
commit | 00cb43908c3deb9bdc8c0627f5aee19c455f8bd6 (patch) | |
tree | e8ccf1ecc5905b54aac9e941f2ecff966f1967f9 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 9bd69ad9b8c07665e14f4affc373d65e4423ff98 (diff) | |
download | bcm5719-llvm-00cb43908c3deb9bdc8c0627f5aee19c455f8bd6.tar.gz bcm5719-llvm-00cb43908c3deb9bdc8c0627f5aee19c455f8bd6.zip |
[LV] Set memcheck metadata also for VF==1
This commit is a follow-up on r297580. It fixes the FIXME added temporarily
by that commit to keep the removal of Unroller's specialized version of
scalarizeInstruction() an NFC. See https://reviews.llvm.org/D30715 for details.
llvm-svn: 297610
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 50d31563588..43dca02f65f 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -3167,11 +3167,7 @@ void InnerLoopVectorizer::scalarizeInstruction(Instruction *Instr, auto *NewOp = getScalarValue(Instr->getOperand(op), Part, Lane); Cloned->setOperand(op, NewOp); } - // FIXME: Limiting the versioning metadata to VF > 1 is incorrect. It was - // added as part of removing Unroller's specialized version of this - // method which was not setting versioning metadata. - if (VF > 1) - addNewMetadata(Cloned, Instr); + addNewMetadata(Cloned, Instr); // Place the cloned scalar in the new loop. Builder.Insert(Cloned); |