Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:Xor

115       Op != Instruction::Xor)
149 else //if (Op == Instruction::Xor)
170 case Instruction::Xor:
202 // Adding a one to a single bit bit-field should be turned into an XOR
218 // the XOR is to toggle the bit. If it is clear, then the ADD has
224 // Pull the XOR out of the AND.
401 case Instruction::Xor:
1236 case Instruction::Xor:
1910 APInt Xor = LHSCst->getValue() ^ RHSCst->getValue();
1911 if (Xor.isPowerOf2()) {
1912 Value *NegCst = Builder->getInt(~Xor);
2090 /// when the XOR of the two constants is "all ones" (-1).
2100 APInt Xor = CI1->getValue() ^ CI2->getValue();
2101 if (!Xor.isAllOnesValue()) return nullptr;
2119 /// when the XOR of the two constants is "all ones" (-1).
2131 APInt Xor = CI1->getValue() ^ CI2->getValue();
2132 if (!Xor.isAllOnesValue())
2371 // Canonicalize xor to the RHS.
2405 B->getOpcode() == Instruction::Xor)) {
2595 // xor (cmp A, B), true = not (cmp A, B) = !cmp A, B
2603 // fold (xor(zext(cmp)), 1) and (xor(sext(cmp)), -1) to ext(!cmp).
2665 E1->getOpcode() == Instruction::Xor &&
2825 // fold (xor (cast A), (cast B)) -> (cast (xor A, B))