Re: smtgcc end-of-year update

2025-01-02 Thread Andi Kleen via Gcc
Krister Walfridsson via Gcc writes: > But running smtgcc on the test suite is not the best use case for the > tool -- it only detects bugs where the test triggers an unrelated bug > compared to what the test is checking, which should be uncommon. I > therefore plan to start testing by compiling r

Re: How to debug/improve excessive compiler memory usage and compile times

2024-10-02 Thread Andi Kleen via Gcc
Ben Boeckel via Gcc writes: > On Tue, Oct 01, 2024 at 18:06:35 +0200, Richard Biener via Gcc wrote: >> Analyze where the compile time is spent and where memory is spent. >> Identify unfitting data structures and algorithms causing the issue. >> Replace with better ones. That’s what I do for thes

Re: LTO progress indicator

2024-09-15 Thread Andi Kleen via Gcc
"Ghorban M. Tavakoly via Gcc" writes: > > I need LTO. Is there a way to have LTO in GCC, without LTOing the GCC > itself? This way my builds will be many times faster. LTO can be used without LTOing gcc itself. It is normally built by default if the target supports it. -Andi

Re: What is the purpose of these two fixincludes?

2024-06-05 Thread Andi Kleen via Gcc
FX Coudert via Gcc writes: > Hi, > > I am trying to reduce the number of unneeded fixincludes that are used > on darwin (because fixincluded headers make it impossible to change > SDK once the compiler is built, which is common practice in the macOS > world, and quite useful). It's the same prob

Re: AutoFDO tools for GCC

2024-03-26 Thread Andi Kleen via Gcc
On Tue, Mar 26, 2024 at 08:45:22AM +0100, Richard Biener wrote: > On Mon, Mar 25, 2024 at 9:54 PM Eugene Rozenfeld via Gcc > wrote: > > > > Hello, > > > > I've been the AutoFDO maintainer for the last 1.5 years. I've resurrected > > autoprofiledbootstrap build and made a number of other fixes/imp

Re: New feature: -fdump-gimple-nodes (once more, with feeling)

2024-02-13 Thread Andi Kleen via Gcc
Robert Dubner writes: > There didn't seem to be any such functionality in GCC. I found a routine > in print-tree.cc which printed out a single node, but I needed to > understand the entire tree of nodes for a function. FWIW the standard way to do this is to run the compiler in gdb with the .gdb

Re: State of AutoFDO in GCC

2021-05-10 Thread Andi Kleen via Gcc
On Mon, May 10, 2021 at 04:55:50PM +, Joseph Myers wrote: > On Mon, 10 May 2021, Andi Kleen via Gcc wrote: > > > It's difficult to find now because it was a branch in the old SVN that > > wasn't > > converted. Sadly the great git conversion was quite

Re: State of AutoFDO in GCC

2021-05-10 Thread Andi Kleen via Gcc
On 5/9/2021 10:01 AM, Jan Hubicka wrote: With my tests, AutoFDO could achieve almost half of the effect of instrumentation FDO on real applications such as MySQL 8.0.20 . Likely this could be improved with some of the missing changes. Apparently discriminator support is worth quite a bit espec

Re: State of AutoFDO in GCC

2021-05-09 Thread Andi Kleen via Gcc
With my tests, AutoFDO could achieve almost half of the effect of instrumentation FDO on real applications such as MySQL 8.0.20 . Likely this could be improved with some of the missing changes. Apparently discriminator support is worth quite a bit especially on dense C++ code bases. Without

Re: RFC: attributes for marking security boundaries (system calls/ioctls, user vs kernel pointers etc)

2021-04-30 Thread Andi Kleen via Gcc
David Malcolm via Gcc writes: > I think I want a way for the user to be able to mark security > boundaries in their code: for example: > * in the Linux kernel the boundary between untrusted user-space data > and kernel data, or, > * for a user-space daemon, the boundary between data coming from t

Re: [EXTERNAL] Re: State of AutoFDO in GCC

2021-04-30 Thread Andi Kleen via Gcc
Eugene Rozenfeld via Gcc writes: > Is the format produced by create_gcov and expected by GCC under > -fauto-rpofile documented somewhere? How is it different from .gcda > used in FDO, e.g., as described here: > http://src.gnu-darwin.org/src/contrib/gcc/gcov-io.h.html? I believe it's very similar

Re: State of AutoFDO in GCC

2021-04-30 Thread Andi Kleen via Gcc
172060...@hdu.edu.cn writes: > Hi all, > > I`m using GCC 9.3 AutoFDO and the old version create_gcov on arm64 > and it works well. Actually it support not only LBR like mode but > also inst_retired even cycles event, which`s the early implementation > of AutoFDO[1]. There is no difference in o

Re: State of AutoFDO in GCC

2021-04-28 Thread Andi Kleen via Gcc
On Mon, Apr 26, 2021 at 06:40:56PM +, Hongtao Yu wrote: >Andi, thanks for pointing out the perf script issues. Can you please >elaborate a bit on the exact issue you have seen? We’ve been using >specific output of perf script such as mmap, LBR and callstack events >filtered by p

Re: State of AutoFDO in GCC

2021-04-26 Thread Andi Kleen via Gcc
On Mon, Apr 26, 2021 at 06:40:56PM +, Hongtao Yu wrote: >Andi, thanks for pointing out the perf script issues. Can you please >elaborate a bit on the exact issue you have seen? We’ve been using >specific output of perf script such as mmap, LBR and callstack events >filtered by p

Re: State of AutoFDO in GCC

2021-04-26 Thread Andi Kleen via Gcc
>There are multiple directional changes in this new tool: >1) it uses perf-script trace output (in text) as input profile data;  I suspect this will break regularly too (I personally did numerous changes to perf script output, and also wrote a lot of parsing scripts) The perf script outp

Re: State of AutoFDO in GCC

2021-04-26 Thread Andi Kleen via Gcc
Jan Hubicka writes: > > Is there a way to get this working w/o using older perf? It's usually rather simple to fix up autofdo for new perf. I did it before here https://github.com/andikleen/autofdo/commits/perf4-3 I think it would work always if it just ignored unknown records (which is quite p

Re: Is it very hard to implement Zero-overhead deterministic exceptions: Throwing values??

2020-06-14 Thread Andi Kleen via Gcc
sotrdg sotrdg via Gcc writes: > http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0709r0.pdf > > I really want this feature. How, it looks like this requires changes > on RTL, gimple and C++ front-end. Is that very hard to implement it? If you're asking about setjmp/longjmp exceptions, you ca