[PATCH] D101226: [SimplifyCFG] Preserve metadata when unconditionalizing branches (same target).

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 26 00:21:38 PDT 2021


lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.

This LGTM, thank you.



================
Comment at: llvm/lib/Transforms/Utils/Local.cpp:155
+      NewBI->copyMetadata(*BI, {LLVMContext::MD_loop, LLVMContext::MD_dbg,
+                                LLVMContext::MD_annotation});
+
----------------
I'm guessing you are intentionally not copying `mustprogress`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101226



More information about the llvm-commits mailing list