[Bug tree-optimization/93131] ((a&8) == 8) && ((a&2) == 2) is not optimized to (a&(8|2)) == (8|2)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 9 10:40:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93131
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Indeed, reassoc could be taught to handle that and do it both in the inside of
bb opt as well as when the & or | are actually && or || and split across
multiple bbs.
More information about the Gcc-bugs
mailing list