[PATCH] store-merging: Allow enums during bswap recognition [PR94403]

2020-03-31 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase is optimized with char/unsigned char/signed char, but not with std::byte. The following patch fixes that. Didn't use INTEGRAL_TYPE_P because bswapping bools is just too weird. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for GCC11 (or is it simple enough

Re: [PATCH] store-merging: Allow enums during bswap recognition [PR94403]

2020-03-31 Thread Richard Biener
On Tue, 31 Mar 2020, Jakub Jelinek wrote: > Hi! > > The following testcase is optimized with char/unsigned char/signed char, > but not with std::byte. The following patch fixes that. Didn't use > INTEGRAL_TYPE_P because bswapping bools is just too weird. Is it? > Bootstrapped/regtested on x86