[PATCH] D54754: [ThinLTO] Assembly representation of ReadOnly attribute
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 21 16:34:22 PST 2018
tejohnson added inline comments.
================
Comment at: lib/AsmParser/LLParser.cpp:7473
-static ValueInfo EmptyVI =
- ValueInfo(false, (GlobalValueSummaryMapTy::value_type *)-8);
+auto FwdVIRef = (GlobalValueSummaryMapTy::value_type *)-8;
+
----------------
Is this change a necessity, or just a cleanup? If the latter, would be better to split into a separate NFC patch. I like the name change from EmptyVI to the more accurate/descriptive FwdVIRef.
But is there any advantage in having it just be the ref and not the whole VI (i.e. a FwdVI)? It requires more code to do the comparison (getRef() invocations).
https://reviews.llvm.org/D54754
More information about the llvm-commits
mailing list