Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:Xor

133   case Instruction::Xor:
165 // Adding a one to a single bit bit-field should be turned into an XOR
181 // the XOR is to toggle the bit. If it is clear, then the ADD has
187 // Pull the XOR out of the AND.
364 case Instruction::Xor:
1133 case Instruction::Xor:
1708 APInt Xor = LHSCst->getValue() ^ RHSCst->getValue();
1709 if (Xor.isPowerOf2()) {
1710 Value *NegCst = Builder->getInt(~Xor);
1888 /// when the XOR of the two constants is "all ones" (-1).
1898 APInt Xor = CI1->getValue() ^ CI2->getValue();
1899 if (!Xor.isAllOnesValue()) return nullptr;
2095 // Canonicalize xor to the RHS.
2129 B->getOpcode() == Instruction::Xor)) {
2282 // xor (cmp A, B), true = not (cmp A, B) = !cmp A, B
2288 // fold (xor(zext(cmp)), 1) and (xor(sext(cmp)), -1) to ext(!cmp).
2349 E1->getOpcode() == Instruction::Xor &&
2467 // fold (xor (cast A), (cast B)) -> (cast (xor A, B))