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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297610
91177308-0d34-0410-b5e6-
96231b3b80d8
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);