[Bug target/118328] Implement preserve_none for AArch64

2025-01-13 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118328 --- Comment #7 from Ken Jin --- The files are too big to upload here, so I've uploaded them to https://github.com/Fidget-Spinner/debugging-dump. They correspond to the main interpreter loop of CPython https://github.com/python/cpython/blob/e1988

[Bug target/118328] Implement preserve_none for AArch64

2025-01-13 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118328 --- Comment #5 from Ken Jin --- However, it seems to me that there's still extraneous push and pops for function prologue/epilogue that could be removed with preserve_none. GCC's regalloc is definitely a lot better than Clang when both don't hav

[Bug tree-optimization/118442] New: -fprofile-generate wrongly adds instrumentation after musttail call

2025-01-12 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118442 Bug ID: 118442 Summary: -fprofile-generate wrongly adds instrumentation after musttail call Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/118328] Implement preserve_none for AArch64

2025-01-12 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118328 --- Comment #4 from Ken Jin --- I can confirm that in the case of tail calls, GCC does produce better/equivalent register spilling code than clang 19.1.0, by manual inspection of call sites.

[Bug tree-optimization/118431] [Feature request]: warn about escaped local variables in musttail instead of error-ing

2025-01-12 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118431 Ken Jin changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c/118431] New: [Feature request]: warn about escaped local variables in musttail instead of error-ing

2025-01-12 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118431 Bug ID: 118431 Summary: [Feature request]: warn about escaped local variables in musttail instead of error-ing Product: gcc Version: 15.0 Status: UNCONFIRMED S

[Bug tree-optimization/118430] [14/15 Regression] tail call vs IPA-VRP return value range with constant value

2025-01-12 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118430 --- Comment #8 from Ken Jin --- Thanks a lot for your help on this! I think I've narrowed down what's happening with CPython. It seems what's happening in CPython is not a bug, but should be a feature request. I will file a separate feature requ

[Bug middle-end/118430] musttail false positive on how locals are used

2025-01-11 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118430 --- Comment #2 from Ken Jin --- Thanks for the quick response. Is the second case in the initial post on the return slot error expected?

[Bug c/118430] New: musttail false positive on how locals are used

2025-01-11 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118430 Bug ID: 118430 Summary: musttail false positive on how locals are used Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug target/118328] Implement preserve_none for AArch64

2025-01-08 Thread kenjin4096 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118328 Ken Jin changed: What|Removed |Added CC||kenjin4096 at gmail dot com --- Comment #3 fr