This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/15357] [tree-ssa] combing if statements



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]