Lines Matching refs:IsLogical
484 bool IsLogical, in foldLogOpOfMaskedICmps() argument
529 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
542 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
551 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
710 bool IsLogical) { in foldAndOrOfICmpsOfAndWithPow2() argument
732 if (IsLogical) in foldAndOrOfICmpsOfAndWithPow2()
1179 bool IsAnd, bool IsLogical, in foldAndOrOfICmpsWithConstEq() argument
1215 if (IsLogical) in foldAndOrOfICmpsWithConstEq()
2585 bool IsLogical = isa<SelectInst>(Op1); in visitAnd() local
2589 foldAndOrOfICmps(LHS, Cmp, I, /* IsAnd */ true, IsLogical)) in visitAnd()
2590 return replaceInstUsesWith(I, IsLogical in visitAnd()
2597 return replaceInstUsesWith(I, IsLogical in visitAnd()
2602 bool IsLogical = isa<SelectInst>(Op0); in visitAnd() local
2606 foldAndOrOfICmps(Cmp, RHS, I, /* IsAnd */ true, IsLogical)) in visitAnd()
2607 return replaceInstUsesWith(I, IsLogical in visitAnd()
2614 return replaceInstUsesWith(I, IsLogical in visitAnd()
3102 bool IsAnd, bool IsLogical, in foldAndOrOfICmpEqConstantAndICmp() argument
3134 if (IsLogical) in foldAndOrOfICmpEqConstantAndICmp()
3148 bool IsLogical) { in foldAndOrOfICmps() argument
3154 if (Value *V = foldAndOrOfICmpsOfAndWithPow2(LHS, RHS, &I, IsAnd, IsLogical)) in foldAndOrOfICmps()
3182 if (Value *V = foldLogOpOfMaskedICmps(LHS, RHS, IsAnd, IsLogical, Builder)) in foldAndOrOfICmps()
3186 foldAndOrOfICmpEqConstantAndICmp(LHS, RHS, IsAnd, IsLogical, Builder)) in foldAndOrOfICmps()
3195 foldAndOrOfICmpsWithConstEq(LHS, RHS, IsAnd, IsLogical, Builder, Q)) in foldAndOrOfICmps()
3210 if (!IsLogical) { in foldAndOrOfICmps()
3223 if (IsAnd && !IsLogical) in foldAndOrOfICmps()
3234 if (!IsLogical) { in foldAndOrOfICmps()
3247 if (!IsLogical && PredL == (IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE) && in foldAndOrOfICmps()
3257 if (!IsLogical && PredL == (IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE) && in foldAndOrOfICmps()
3639 bool IsLogical = isa<SelectInst>(Op1); in visitOr() local
3643 foldAndOrOfICmps(LHS, Cmp, I, /* IsAnd */ false, IsLogical)) in visitOr()
3644 return replaceInstUsesWith(I, IsLogical in visitOr()
3651 return replaceInstUsesWith(I, IsLogical in visitOr()
3656 bool IsLogical = isa<SelectInst>(Op0); in visitOr() local
3660 foldAndOrOfICmps(Cmp, RHS, I, /* IsAnd */ false, IsLogical)) in visitOr()
3661 return replaceInstUsesWith(I, IsLogical in visitOr()
3668 return replaceInstUsesWith(I, IsLogical in visitOr()