Lines Matching refs:IsLogical
525 bool IsLogical, in foldLogOpOfMaskedICmps() argument
570 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
583 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
592 if (IsLogical && !isGuaranteedNotToBeUndefOrPoison(D)) in foldLogOpOfMaskedICmps()
724 bool IsLogical) { in foldAndOrOfICmpsOfAndWithPow2() argument
746 if (IsLogical) in foldAndOrOfICmpsOfAndWithPow2()
2097 bool IsLogical = isa<SelectInst>(Op1); in visitAnd() local
2101 foldAndOrOfICmps(LHS, Cmp, I, /* IsAnd */ true, IsLogical)) in visitAnd()
2102 return replaceInstUsesWith(I, IsLogical in visitAnd()
2109 return replaceInstUsesWith(I, IsLogical in visitAnd()
2114 bool IsLogical = isa<SelectInst>(Op0); in visitAnd() local
2118 foldAndOrOfICmps(Cmp, RHS, I, /* IsAnd */ true, IsLogical)) in visitAnd()
2119 return replaceInstUsesWith(I, IsLogical in visitAnd()
2126 return replaceInstUsesWith(I, IsLogical in visitAnd()
2518 bool IsLogical) { in foldAndOrOfICmps() argument
2524 if (Value *V = foldAndOrOfICmpsOfAndWithPow2(LHS, RHS, &I, IsAnd, IsLogical)) in foldAndOrOfICmps()
2552 if (Value *V = foldLogOpOfMaskedICmps(LHS, RHS, IsAnd, IsLogical, Builder)) in foldAndOrOfICmps()
2557 if (!IsLogical) { in foldAndOrOfICmps()
2565 if (!IsLogical) { in foldAndOrOfICmps()
2579 if (!IsLogical) { in foldAndOrOfICmps()
2592 if (IsAnd && !IsLogical) in foldAndOrOfICmps()
2600 if (!IsLogical) { in foldAndOrOfICmps()
2613 if (!IsLogical && PredL == (IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE) && in foldAndOrOfICmps()
2943 bool IsLogical = isa<SelectInst>(Op1); in visitOr() local
2947 foldAndOrOfICmps(LHS, Cmp, I, /* IsAnd */ false, IsLogical)) in visitOr()
2948 return replaceInstUsesWith(I, IsLogical in visitOr()
2955 return replaceInstUsesWith(I, IsLogical in visitOr()
2960 bool IsLogical = isa<SelectInst>(Op0); in visitOr() local
2964 foldAndOrOfICmps(Cmp, RHS, I, /* IsAnd */ false, IsLogical)) in visitOr()
2965 return replaceInstUsesWith(I, IsLogical in visitOr()
2972 return replaceInstUsesWith(I, IsLogical in visitOr()