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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105519
Andrew Pinski changed:
What|Removed |Added
See Also||https://gcc.gnu.org/bugzill
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105519
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED