[PATCH] D20639: SLPVectorizer: Move propagateMetadata to VectorUtils

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 13:21:34 PDT 2016


jlebar added inline comments.

================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:684
@@ -683,3 @@
-
-    To->setMetadata(Kind, M.second);
-  }
----------------
Oh, I bet I see the problem.  There's a difference in behavior between this propagateMetadata and the new one.  This one ignores unknown metadata -- leaves it in place on "To".  The new one explicitly removes it.


http://reviews.llvm.org/D20639





More information about the llvm-commits mailing list