Add GCC-compatible flags -fprofile-generate and -fprofile-use
Richard Smith
richard at metafoo.co.uk
Tue Jul 7 13:32:45 PDT 2015
On Tue, Jul 7, 2015 at 11:35 AM, Diego Novillo <dnovillo at google.com> wrote:
> ping?
+ Without any other arguments, ``-fprofile-generate`` behaves identically to
+ ``-fprofile-instr-generate``. When given a directory name, it generates the
+ profile file ``default.profraw`` in the directory named ``dirname``. If
+ ``dirname`` does not exist, it will be created. The environment variable
Maybe "it will be created at runtime." to clarify that we won't create a
directory as a side-effect of the compile.
Is it possible to transform -fprofile-instr-generate into
-fprofile-instr-generate=default.profraw and remove frontend support for
the non-= form? (If so, I'm happy with that being a follow-up patch.)
I think it'd be slightly better for -fprofile-generate= to override
-fprofile-instr-generate= and vice versa (last on the command line wins)
rather than making them conflict.
Otherwise, frontend patch LGTM.
> Thanks. Diego.
>
> On Wed, Jul 1, 2015 at 7:33 AM, Diego Novillo <dnovillo at google.com> wrote:
> > I've updated the frontend and runtime patches based on the discussions
> > we had in this thread and IRC.
> >
> > Thanks. Diego.
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150707/5838dc05/attachment.html>
More information about the cfe-commits
mailing list