[PATCH] D91444: [InstCombine] Preserve !annotation metadata for memory combines.

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 15:47:42 PST 2020


thegameg added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp:1105
   NewCI->setAttributes(CI->getAttributes());
+  if (MDNode *AnnotationMD = CI->getMetadata(LLVMContext::MD_annotation))
+    NewCI->setMetadata(LLVMContext::MD_annotation, AnnotationMD);
----------------
Why not `copyMetadata` here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91444/new/

https://reviews.llvm.org/D91444



More information about the llvm-commits mailing list