[PATCH] D86360: Add new hidden option -print-changed which only reports changes to IR

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 23 21:08:35 PDT 2020


yrouban added inline comments.


================
Comment at: llvm/lib/Passes/StandardInstrumentations.cpp:461
+  if (PrintChanged) {
+    static IRChangePrinter ICP(dbgs());
+    PIC.registerBeforePassCallback([](StringRef P, Any IR) {
----------------
//static// cannot be used for a multi-threaded compiler.
Please create //IRChangePrinter// instance for every instance of //StandardInstrumentations//.


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

https://reviews.llvm.org/D86360



More information about the llvm-commits mailing list