Lines Matching defs:IsLogical
484 bool IsLogical,
529 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D))
542 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D))
551 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D))
749 bool IsLogical) {
771 if (IsLogical)
1222 bool IsAnd, bool IsLogical,
1258 if (IsLogical)
2695 bool IsLogical = isa<SelectInst>(Op1);
2699 foldAndOrOfICmps(LHS, Cmp, I, /* IsAnd */ true, IsLogical))
2700 return replaceInstUsesWith(I, IsLogical
2706 /* IsLogical */ false))
2707 return replaceInstUsesWith(I, IsLogical
2712 bool IsLogical = isa<SelectInst>(Op0);
2716 foldAndOrOfICmps(Cmp, RHS, I, /* IsAnd */ true, IsLogical))
2717 return replaceInstUsesWith(I, IsLogical
2723 /* IsLogical */ false))
2724 return replaceInstUsesWith(I, IsLogical
3232 bool IsAnd, bool IsLogical,
3264 if (IsLogical)
3274 /// If IsLogical is true, then the and/or is in select form and the transform
3278 bool IsLogical) {
3284 if (Value *V = foldAndOrOfICmpsOfAndWithPow2(LHS, RHS, &I, IsAnd, IsLogical))
3313 if (Value *V = foldLogOpOfMaskedICmps(LHS, RHS, IsAnd, IsLogical, Builder))
3317 foldAndOrOfICmpEqConstantAndICmp(LHS, RHS, IsAnd, IsLogical, Builder))
3322 /*IsLogical*/ false, Builder))
3326 foldAndOrOfICmpsWithConstEq(LHS, RHS, IsAnd, IsLogical, Builder, Q))
3331 /*IsLogical*/ false, Builder, Q))
3341 if (!IsLogical) {
3354 if (IsAnd && !IsLogical)
3365 if (!IsLogical) {
3378 if (!IsLogical && PredL == (IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE) &&
3388 if (!IsLogical && PredL == (IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE) &&
3396 if (!IsLogical)
3758 bool IsLogical = isa<SelectInst>(Op1);
3762 foldAndOrOfICmps(LHS, Cmp, I, /* IsAnd */ false, IsLogical))
3763 return replaceInstUsesWith(I, IsLogical
3769 /* IsLogical */ false))
3770 return replaceInstUsesWith(I, IsLogical
3775 bool IsLogical = isa<SelectInst>(Op0);
3779 foldAndOrOfICmps(Cmp, RHS, I, /* IsAnd */ false, IsLogical))
3780 return replaceInstUsesWith(I, IsLogical
3786 /* IsLogical */ false))
3787 return replaceInstUsesWith(I, IsLogical