[Bug tree-optimization/94403] Missed optimization bswap
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 31 09:05:09 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94403
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:5ea39b2412269d208bb6ebd78303815957bd4f70
commit r10-7470-g5ea39b2412269d208bb6ebd78303815957bd4f70
Author: Jakub Jelinek <jakub@redhat.com>
Date: Tue Mar 31 11:04:32 2020 +0200
store-merging: Allow enums during bswap recognition [PR94403]
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.
2020-03-31 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/94403
* gimple-ssa-store-merging.c (verify_symbolic_number_p): Allow also
ENUMERAL_TYPE lhs_type.
* g++.dg/tree-ssa/pr94403.C: New test.
More information about the Gcc-bugs
mailing list