]> granicus.if.org Git - llvm/commitdiff
[LV] Set memcheck metadata also for VF==1
authorGil Rapaport <gil.rapaport@intel.com>
Mon, 13 Mar 2017 10:23:46 +0000 (10:23 +0000)
committerGil Rapaport <gil.rapaport@intel.com>
Mon, 13 Mar 2017 10:23:46 +0000 (10:23 +0000)
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

lib/Transforms/Vectorize/LoopVectorize.cpp

index 50d315635882b658a69c56575ca4b4bd694c9dcf..43dca02f65f4c1ee1951d8bcff7538747f3ed032 100644 (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);