1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[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
This commit is contained in:
Gil Rapaport 2017-03-13 10:23:46 +00:00
parent 3015e60ce3
commit 52cac734e2

View File

@ -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);