[llvm-bugs] [Bug 41252] New: clang-cl does not support -fprofile-generate

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 27 00:54:38 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41252

            Bug ID: 41252
           Summary: clang-cl does not support -fprofile-generate
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: michaelwoerister at posteo.net
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

`clang-cl` supports `-fprofile-instr-generate` but not `-fprofile-generate` (or
`-fcs-profile-generate`). 

There is experimental support for PGO in the Rust compiler based on IR-level
instrumentation. In order to be able to use it in a mixed Rust/C codebase, C
code also has to be instrumented via the IR-level method. This works for
regular `clang` but `clang-cl` does not seem to expose this functionality.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190327/53700fdf/attachment.html>


More information about the llvm-bugs mailing list