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]

Re: [Bug optimization/15256] 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).


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