[PATCH] D54793: Fixing -print-module-scope for legacy SCC passes

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 26 23:49:29 PST 2018


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

LGTM



================
Comment at: lib/Analysis/CallGraphSCCPass.cpp:644
+      bool NeedModule = llvm::forcePrintModuleIR();
+      if (isFunctionInPrintList("*") && NeedModule) {
+        PrintBannerOnce();
----------------
Minor: check `NeedModule` first, it's tad faster.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D54793





More information about the llvm-commits mailing list