[PATCH] D20639: SLPVectorizer: Move propagateMetadata to VectorUtils

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 13:34:42 PDT 2016


arsenm added inline comments.

================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:475
@@ -474,3 +474,3 @@
   /// loop.
-  void addMetadata(Instruction *To, const Instruction *From);
+  void addMetadata(Instruction *To, Instruction *From);
 
----------------
mzolotukhin wrote:
> Why drop `const`?
I tried to keep the const, but the MDNode::get*s make this non-const.


http://reviews.llvm.org/D20639





More information about the llvm-commits mailing list