safocl wrote: Could you please tell me what I'm doing wrong? In my example at https://godbolt.org/z/5dhWK7rGx, Clang generates an empty function with the "-O1" flag and higher, but generates code with the "-O0" flag (as if there's undefined behavior somewhere). I wanted to compare how well the new function wrappers perform compared to these changes. In the case of GCC, it potentially generates less code for `std::function_ref` compared to implementing it via a custom structure.
https://github.com/llvm/llvm-project/pull/203042 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
