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

Hal Finkel via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 22:47:02 PDT 2016


hfinkel 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" : " ");
+
----------------
anemet wrote:
> 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?
> 
So long as we're careful in the backend to respect the limited visual real estate and namespace in this kind of report, we could have the optimizations themselves provide a letter. I'm undecided.


http://reviews.llvm.org/D19678





More information about the cfe-commits mailing list