[Bug rtl-optimization/105519] Unnecessary memcpy() copy for empty asm volatile

2022-05-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105519 --- Comment #3 from Andrew Pinski --- template __attribute__((noipa)) void DoNotOptimize(Tp& value) {} Is a better way. Yes it will still have a function call but really this is just all to do microbenchmarking so it is not even a high thing

[Bug rtl-optimization/105519] Unnecessary memcpy() copy for empty asm volatile

2022-05-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105519 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug rtl-optimization/105519] Unnecessary memcpy() copy for empty asm volatile

2022-05-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105519 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED