search for: fprofil

Displaying 20 results from an estimated 207 matches for "fprofil".

Did you mean: fprofile
2015 Jun 17
2
[LLVMdev] RFC - Stop ignoring -fprofile-generate and -fprofile-use
The flags -fprofile-generate and -fprofile-use are currently ignored for GCC compatibility. I would like to enable them and give them similar semantics to GCC. These flags are baked pretty deeply into our build environment, so supporting them at the driver level will make our lives a lot simpler. >From https:...
2015 Jun 17
4
[LLVMdev] RFC - Stop ignoring -fprofile-generate and -fprofile-use
On 2015 Jun 17, at 13:53, Diego Novillo <dnovillo at google.com> wrote: > The flags -fprofile-generate and -fprofile-use are currently ignored > for GCC compatibility. I would like to enable them and give them > similar semantics to GCC. These flags are baked pretty deeply into > our build environment, so supporting them at the driver level will > make our lives a lot simpler...
2016 Jun 27
2
The state of IRPGO (3 remaining work items)
...Li via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> >> Sounds fine to me, though I am not a fan of using unstable in the option. >> I think a more meaningful way (that capture the essence of the difference) >> is the following naming: >> 1) FEPGO: -fprofile-instr-generate=source or >> -fprofile-instr-generate=region >> 2) IR: -fprofile-instr-generate=cfg or -fprofile-instr-generate=graph >> >> Also since -fprofile-instr-generate= form is already used to specify raw >> profile path, we may need a different driver option....
2016 May 24
0
The state of IRPGO (3 remaining work items)
Zooming into the command-line option bike-shed: > On 2016-May-24, at 15:41, Vedant Kumar via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > At its core I don't think -fprofile-instr-generate *implies* FE-based instrumentation. So, I'd like to see the driver do this (on all platforms): > > * -fprofile-instr-generate: IR instrumentation > * -fprofile-instr-generate=IR: IR instrumentation > * -fprofile-instr-generate=FE: FE instrumentation > * -fpro...
2016 May 24
1
The state of IRPGO (3 remaining work items)
...016 at 3:50 PM, Duncan P. N. Exon Smith < dexonsmith at apple.com> wrote: > Zooming into the command-line option bike-shed: > > > On 2016-May-24, at 15:41, Vedant Kumar via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > At its core I don't think -fprofile-instr-generate *implies* FE-based > instrumentation. So, I'd like to see the driver do this (on all platforms): > > > > * -fprofile-instr-generate: IR instrumentation > > * -fprofile-instr-generate=IR: IR instrumentation > > * -fprofile-instr-generate=FE: FE instr...
2016 Jun 27
2
The state of IRPGO (3 remaining work items)
On Mon, Jun 27, 2016 at 2:53 PM Xinliang David Li <davidxl at google.com> wrote: > There is some misunderstanding about the intention of this flag. The > purpose of the flag is not to turn on profile instrumentation (which > already has -fprofile-instr-generate or -fprofile-generate for it), but to > select which instrumentors to use for PGO (IR or FE). I prefer fewer flags > too, but sharing flags for completely different purpose does not seem like > the right thing to do. > > Ah, right. It does seem like I'm misunders...
2016 Jun 27
0
The state of IRPGO (3 remaining work items)
There is some misunderstanding about the intention of this flag. The purpose of the flag is not to turn on profile instrumentation (which already has -fprofile-instr-generate or -fprofile-generate for it), but to select which instrumentors to use for PGO (IR or FE). I prefer fewer flags too, but sharing flags for completely different purpose does not seem like the right thing to do. David On Sun, Jun 26, 2016 at 9:39 PM, Dean Michael Berris <dberr...
2016 Jun 03
2
The state of IRPGO (3 remaining work items)
> On Jun 2, 2016, at 5:30 PM, Sean Silva <chisophugis at gmail.com> wrote: > > This also means that if the consensus is that -fprofile-instr-generate should really change its meaning to mean IRPGO, I’m open to having this internal patch on our side. > > Yeah, it sounds like someone is going to have to keep a "private patch" to change the default. At that point doing a switch on the triple in upstream seems prefe...
2016 Jun 27
0
The state of IRPGO (3 remaining work items)
...wrote: > > > On Mon, Jun 27, 2016 at 2:53 PM Xinliang David Li <davidxl at google.com> > wrote: > >> There is some misunderstanding about the intention of this flag. The >> purpose of the flag is not to turn on profile instrumentation (which >> already has -fprofile-instr-generate or -fprofile-generate for it), but to >> select which instrumentors to use for PGO (IR or FE). I prefer fewer flags >> too, but sharing flags for completely different purpose does not seem like >> the right thing to do. >> >> > Ah, right. It does se...
2015 Oct 09
3
LLVM AutoFDO status
With recent bug fixes and performance tunings, AutoFDO at llvm has reached a usable state. To evaluate performance, we used O3/-fprofile-use/-fprofile-sample-use respectively to optimize clang itself, and measure its speed. clang built with -fprofile-use is ~20% faster than clang built with O3 clang built with -fprofile-sample-use is ~10% faster than clang built with O3 AutoFDO can deliver 50% of the FDO speedup to clang. The...
2016 Jun 03
5
The state of IRPGO (3 remaining work items)
...inconsistency. I'm worried that >>>>> it might lead to Darwin becoming a second-tier platform for PGO. >>>>> >>>>> Fred (CC'd) is following up with some of our internal users to check >>>>> if we can change the default behavior of -fprofile-instr-generate. He >>>>> should be able to chime in on this soon. >>>>> >>>> >>>> Sorry it took me so long. >>>> >>> >>> Hi Fred, >>> >>> My understanding is that you were specifically investigati...
2016 May 24
6
The state of IRPGO (3 remaining work items)
...on all platforms except Apple platforms. I'd really rather not introduce this inconsistency. I'm worried that it might lead to Darwin becoming a second-tier platform for PGO. Fred (CC'd) is following up with some of our internal users to check if we can change the default behavior of -fprofile-instr-generate. He should be able to chime in on this soon. At its core I don't think -fprofile-instr-generate *implies* FE-based instrumentation. So, I'd like to see the driver do this (on all platforms): * -fprofile-instr-generate: IR instrumentation * -fprofile-instr-generate=IR:...
2016 Mar 09
3
PGO question
Hi, I have a question regarding PGO. I collected profile data with the instrumentation build (-fprofile-instr-generate) and provided for PGO optimization in the second build (with -fprofile-instr-use=xxx.profdata). This works fine. Then I tried to provide the profile data to opt using the option -pgo-instr-use, but this causes an error with the message: "Not an IR level instrumentation profile...
2016 Jun 23
0
The state of IRPGO (3 remaining work items)
...'m worried that >>>>>> it might lead to Darwin becoming a second-tier platform for PGO. >>>>>> >>>>>> Fred (CC'd) is following up with some of our internal users to check >>>>>> if we can change the default behavior of -fprofile-instr-generate. He >>>>>> should be able to chime in on this soon. >>>>>> >>>>> >>>>> Sorry it took me so long. >>>>> >>>> >>>> Hi Fred, >>>> >>>> My understanding is th...
2018 May 09
2
lld + ThinLTO + fprofile-generate causes duplicate symbol errors
...nd __llvm_profile_raw_version. IIUC, these are supposed to be weak symbols but Thin LTO seems to break this in some way. This does't happen with gold or no LTO or full LTO. $ cat > a.c extern int foo(); int main() { return foo(); } $ cat > b.c int foo() { return 0; } $ clang a.c -fprofile-generate -flto=thin -c $ clang b.c -fprofile-generate -flto=thin -c $ clang a.o b.o -fprofile-generate -flto=thin -fuse-ld=lld ld.lld: error: duplicate symbol: __llvm_profile_filename >>> defined at a.c >>> lto.tmp:(__llvm_profile_filename) >>> defined at b.c...
2015 Feb 10
3
[LLVMdev] Coverage mapping issue: Malformed profile data
...u 14.04 Here is simple snippets test1.c: NOT OK ================== #include <stdio.h> static int foo() { return 42; } int main() { return 0; } ================== cp src/test1.c src/test.c; rm -fr default.profraw test.profdata ; clang -c -o obj/test.o src/test.c -I -g -O0 -fprofile-instr-generate -fcoverage-mapping; clang -o bin/test obj/test.o -I -g -O0 -fprofile-instr-generate -fcoverage-mapping; ./bin/test ; llvm-profdata merge -o test.profdata default.profraw; llvm-cov show ./bin/test -instr-profile=test.profdata error: Failed to load coverage: M...
2016 Jun 13
2
The state of IRPGO (3 remaining work items)
...hat >>>>>>> it might lead to Darwin becoming a second-tier platform for PGO. >>>>>>> >>>>>>> Fred (CC'd) is following up with some of our internal users to check >>>>>>> if we can change the default behavior of -fprofile-instr-generate. He >>>>>>> should be able to chime in on this soon. >>>>>>> >>>>>> >>>>>> Sorry it took me so long. >>>>>> >>>>> >>>>> Hi Fred, >>>>> >&gt...
2016 Jun 02
4
The state of IRPGO (3 remaining work items)
...; >>> I'd really rather not introduce this inconsistency. I'm worried that it might lead to Darwin becoming a second-tier platform for PGO. >>> >>> Fred (CC'd) is following up with some of our internal users to check if we can change the default behavior of -fprofile-instr-generate. He should be able to chime in on this soon. >> >> Sorry it took me so long. >> >> Hi Fred, >> >> My understanding is that you were specifically investigating whether Apple needed compatibility for merging indexed profiles. Is that compatibilit...
2018 May 09
0
lld + ThinLTO + fprofile-generate causes duplicate symbol errors
...ols but Thin LTO seems to break > this in some way. This does't happen with gold or no LTO or full LTO. > > $ cat > a.c > extern int foo(); > > int main() { > return foo(); > } > > $ cat > b.c > int foo() { > return 0; > } > > $ clang a.c -fprofile-generate -flto=thin -c > $ clang b.c -fprofile-generate -flto=thin -c > $ clang a.o b.o -fprofile-generate -flto=thin -fuse-ld=lld > ld.lld: error: duplicate symbol: __llvm_profile_filename > >>> defined at a.c > >>> lto.tmp:(__llvm_profile_filename) &gt...
2018 May 09
2
lld + ThinLTO + fprofile-generate causes duplicate symbol errors
...This does't happen with gold or no LTO or full LTO. >> >> $ cat > a.c >> extern int foo(); >> >> int main() { >> return foo(); >> } >> >> $ cat > b.c >> int foo() { >> return 0; >> } >> >> $ clang a.c -fprofile-generate -flto=thin -c >> $ clang b.c -fprofile-generate -flto=thin -c >> $ clang a.o b.o -fprofile-generate -flto=thin -fuse-ld=lld >> ld.lld: error: duplicate symbol: __llvm_profile_filename >> >>> defined at a.c >> >>> lto.tmp:(__llvm_p...