[PATCH] D93410: [SimplifyCFG] Preserve !annotation in FoldBranchToCommonDest.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 23:44:12 PST 2020


lebedev.ri accepted this revision.
lebedev.ri added a comment.

LG



================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2948
+      // it is tied to the instruction itself, not the value or position.
+      NewBonusInst->dropUnknownNonDebugMetadata(LLVMContext::MD_annotation);
 
----------------
I guess this is preexisting, but this is confusing, it really should be named `dropUnknownNonDebugMetadataExcept()`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93410



More information about the llvm-commits mailing list