[PATCH] D15212: [PGO] Value profiling text format reader/writer support

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 14 10:45:45 PST 2015


Done.

thanks,

David

On Mon, Dec 14, 2015 at 8:53 AM, Vedant Kumar <vsk at apple.com> wrote:
> vsk added a comment.
>
> Thanks, lgtm with two minor changes.
>
>
> ================
> Comment at: lib/ProfileData/InstrProfReader.cpp:112
> @@ -111,1 +111,3 @@
>
> +#define CHECK_LINE_END(Line)                                                   \
> +  if (Line.is_at_end())                                                        \
> ----------------
> Could you move these inside `readValueProfileData` and `#undef` them at the end of the function?
>
> ================
> Comment at: lib/ProfileData/InstrProfReader.cpp:113
> @@ +112,3 @@
> +#define CHECK_LINE_END(Line)                                                   \
> +  if (Line.is_at_end())                                                        \
> +    return error(instrprof_error::truncated);
> ----------------
> These macro function arguments should be wrapped in parens.
>
>
> http://reviews.llvm.org/D15212
>
>
>


More information about the llvm-commits mailing list