This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15357] [tree-ssa] combing if statements
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2007 13:44:26 -0000
- Subject: [Bug tree-optimization/15357] [tree-ssa] combing if statements
- References: <bug-15357-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-01-26 13:44 -------
Another thing we should be able to do is combine bit-tests like
if (a & (1 << b))
if (a & (1 << c))
...
to a single test
if (a & ((1 << b) | (1 << c)) == ((1 << b) | (1 << c)))
...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15357