Describe the bug
std::byte is not _Is_trivially_swappable, so code generation is worse than for unsigned char
This problem is best seen at godbolt: https://godbolt.org/z/qxP8fYd3v
Expected behavior
std::byte should have same speed as unsigned char
STL version
Microsoft Visual Studio Community 2022 Preview 1.1 Version 17.0.0
Additional context
DevCom-1467265 and Microsoft-internal VSO-1352013 / AB#1352013