[Bug target/120841] gcc prefer non-volatile register produces sub optimal code

2025-06-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120841 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Target|X86_64

[Bug target/120841] gcc prefer non-volatile register produces sub optimal code

2025-06-27 Thread rockeet at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120841 --- Comment #2 from rockeet --- (In reply to Andrew Pinski from comment #1) > Gcc is already better than llvm by figuring out the return of memcpy is the > first argument. > > I am not sure if the one extra move is going hurt here either. Yes,

[Bug target/120841] gcc prefer non-volatile register produces sub optimal code

2025-06-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120841 --- Comment #1 from Andrew Pinski --- Gcc is already better than llvm by figuring out the return of memcpy is the first argument. I am not sure if the one extra move is going hurt here either.

[Bug target/120841] gcc prefer non-volatile register produces sub optimal code

2025-06-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120841 Andrew Pinski changed: What|Removed |Added Component|c |target Severity|normal