[clang] [clang] constexpr built-in reduce add function. (PR #116243)

via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 03:48:22 PST 2024


c8ef wrote:

> This seems reasonable to me - I'd recommend you take a look at the min/max reductions to see if signed/unsigned can be correctly handled with this approach.

Thank you for your suggestions! Signed integer overflow in C++ is undefined behavior and cannot occur in a constexpr context. I have addressed the issue in the latest revision.

https://github.com/llvm/llvm-project/pull/116243


More information about the cfe-commits mailing list