[PATCH] D19678: Annotated-source optimization reports (a.k.a. "listing" files)

Adam Nemet via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 17:20:32 PDT 2016


anemet added inline comments.

================
Comment at: lib/CodeGen/CodeGenAction.cpp:734-737
@@ +733,6 @@
+
+      OS << llvm::format_decimal(L + 1, LNDigits) << " ";
+      OS << (LLI.Inlined.Transformed && InlinedCols < 2 ? "I" : " ");
+      OS << (LLI.Unrolled.Transformed && UnrolledCols < 2 ? "U" : " ");
+      OS << (LLI.Vectorized.Transformed && VectorizedCols < 2 ? "V" : " ");
+
----------------
Should the abbreviation be somehow part of the optimization remark API and passed in just like the pass name?

It would be nice if someone added optimization remark for a new opt, it would show up here automatically.  I could see how that could make the output too busy but at least have the option?



http://reviews.llvm.org/D19678





More information about the cfe-commits mailing list