Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:Xor

141   case Instruction::Xor:
173 // Adding a one to a single bit bit-field should be turned into an XOR
189 // the XOR is to toggle the bit. If it is clear, then the ADD has
195 // Pull the XOR out of the AND.
376 case Instruction::Xor:
1035 case Instruction::Xor:
1561 APInt Xor = LHSCst->getValue() ^ RHSCst->getValue();
1562 if (Xor.isPowerOf2()) {
1563 Value *NegCst = Builder->getInt(~Xor);
1733 /// when the XOR of the two constants is "all ones" (-1).
1743 APInt Xor = CI1->getValue() ^ CI2->getValue();
1744 if (!Xor.isAllOnesValue()) return 0;
1965 // Canonicalize xor to the RHS.
1999 B->getOpcode() == Instruction::Xor)) {
2149 // xor (cmp A, B), true = not (cmp A, B) = !cmp A, B
2155 // fold (xor(zext(cmp)), 1) and (xor(sext(cmp)), -1) to ext(!cmp).
2218 E1->getOpcode() == Instruction::Xor &&
2336 // fold (xor (cast A), (cast B)) -> (cast (xor A, B))