[PATCH] D13308: Value profiling - remaining LLVM changes
Mailing List "llvm-commits" via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 14 17:49:19 PDT 2015
llvm-commits added a comment.
> davidxl added inline comments.
>
> ================
> Comment at: include/llvm/ProfileData/InstrProfReader.h:144
> @@ +143,3 @@
> + const IntPtrT FunctionPointer;
> + const uint32_t NumValueSites[IPVK_Last+1];
> + const IntPtrT Values;
>
> ----------------
>
> Make NumValueSites[..] the last field of ProfileData. The number of value
> profile kind also need to be recorded in the file header. This is to avoid
> format version bump each time a new value profile kind is added.
I've added in my latest patch, a field to the raw header to record the
last element of the value kind enum at run-time. However, I think the
field ordering change will not help in avoiding a format version change.
Justin, do you have any comments on the patch?
-Betul
> http://reviews.llvm.org/D13308
_______________________________________________
llvm-commits mailing list
llvm-commits at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
http://reviews.llvm.org/D13308
More information about the llvm-commits
mailing list