]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Ensure __builtin_constant_p isn't lost on the way
authorMatthias Kretz <m.kretz@gsi.de>
Fri, 13 Jan 2023 15:20:36 +0000 (16:20 +0100)
committerMatthias Kretz <m.kretz@gsi.de>
Thu, 16 Feb 2023 14:58:33 +0000 (15:58 +0100)
commitfea34ee491104f325682cc5fb75683b7d74a0a3b
treeec55aa58014371348f525117f550f6fcb53bc7c0
parentfeff71e035c2948c3e4cbcc06adf1ed633e3bd50
libstdc++: Ensure __builtin_constant_p isn't lost on the way

The more expensive code path should only be taken if it can be optimized
away.

Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:

* include/experimental/bits/simd.h
(_SimdWrapper::_M_is_constprop_none_of)
(_SimdWrapper::_M_is_constprop_all_of): Return false unless the
computed result still satisfies __builtin_constant_p.
libstdc++-v3/include/experimental/bits/simd.h