Bug ID: 36303
           Summary: PGO leads to performance degradation
           Product: new-bugs
           Version: 6.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs

Created attachment 19840
Code sample

I've been testing PGO with the code from the thread:

(Code is attached).

And it appeared that using PGO (either -fprofile-instr or -fprofile) lead to
performance degradation. See the results of `{ for i in `seq 1 100`; do time
./test > /dev/null ; done ; } 2>> perf.log` below:

clang -O3: 3.12253
clang -O3 + -fprofile-use: 3.14982
clang -O3 + -fprofile-use + -mllvm -force-precise-rotation-cost : 3.14189
gcc -O3: 3.38019
gcc -O3 + -fprofile-use: 2.937

clang/llvm were built from release_60 branch, gcc version was 7.3.0.

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to