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/15256] [tree-ssa] Optimize manual bitfield manipilation.


------- Additional Comments From segher at kernel dot crashing dot org  2004-05-18 11:45 -------
Subject: Re:  New: [tree-ssa] Optimize manual bitfield manipilation.

The generic rule is

X | (Y ^ Z) == (X | Y) ^ Z      if X & (Y ^ Z) == 0

(because then it is just X ^ Y ^ Z -- dunno if you want to go
that far -- but that sure would be nice).

Segher

(everything should be canonicalized to (n)ands (and maybe xors)...
or == doubt == wrong).



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15256


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