|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
examples/BrainF/BrainF.cpp 446 ICmpInst *test_0 = new ICmpInst(*testbb, ICmpInst::ICMP_EQ, tape_0,
gen/lib/Target/AMDGPU/AMDGPUGenGlobalISel.inc15940 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
16151 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
16236 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
gen/lib/Target/Mips/MipsGenGlobalISel.inc12786 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
13598 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
13637 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
13680 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
13725 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
13874 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
14045 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
14217 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
14448 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15403 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15459 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15515 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15571 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15627 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15683 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15739 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15795 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
15987 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
16191 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
16395 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
16599 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
16841 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
17035 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
17239 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
17443 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
17799 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
17827 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
17911 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
17967 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
17995 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
18079 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
18407 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
18441 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
18679 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
19019 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
19053 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
19291 GIM_CheckCmpPredicate, /*MI*/1, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
gen/lib/Target/RISCV/RISCVGenGlobalISel.inc10071 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
10086 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
10211 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
10237 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
10375 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
10396 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
10695 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
10765 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
10847 GIM_CheckCmpPredicate, /*MI*/0, /*Op*/1, /*Predicate*/CmpInst::ICMP_EQ,
include/llvm/IR/IRBuilder.h 2120 return CreateICmp(ICmpInst::ICMP_EQ, LHS, RHS, Name);
include/llvm/IR/InstrTypes.h 763 FIRST_ICMP_PREDICATE = ICMP_EQ,
include/llvm/IR/Instructions.h 1242 return P == ICMP_EQ || P == ICMP_NE;
include/llvm/IR/PatternMatch.h 466 case ICmpInst::Predicate::ICMP_EQ:
1640 if (Pred == ICmpInst::ICMP_EQ) {
lib/Analysis/AssumptionCache.cpp 86 if (Pred == ICmpInst::ICMP_EQ) {
lib/Analysis/BranchProbabilityInfo.cpp 710 case CmpInst::ICMP_EQ:
721 case CmpInst::ICMP_EQ:
746 case CmpInst::ICMP_EQ:
lib/Analysis/CmpInstAnalysis.cpp 28 case ICmpInst::ICMP_EQ: return 2; // 010
49 case 2: Pred = ICmpInst::ICMP_EQ; break;
97 Pred = ICmpInst::ICMP_EQ;
104 Pred = ICmpInst::ICMP_EQ;
111 Pred = ICmpInst::ICMP_EQ;
118 Pred = ICmpInst::ICMP_EQ;
lib/Analysis/ConstantFolding.cpp 1269 if ((Predicate == ICmpInst::ICMP_EQ || Predicate == ICmpInst::ICMP_NE) &&
1276 Predicate == ICmpInst::ICMP_EQ ? Instruction::And : Instruction::Or;
lib/Analysis/DependenceAnalysis.cpp 451 if (isKnownPredicate(CmpInst::ICMP_EQ, X->getD(), Y->getD()))
480 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2)) {
485 if (isKnownPredicate(CmpInst::ICMP_EQ, Prod1, Prod2))
566 if (isKnownPredicate(CmpInst::ICMP_EQ, Sum, Y->getC()))
969 if (Pred == CmpInst::ICMP_EQ ||
994 case CmpInst::ICMP_EQ:
1104 if (isKnownPredicate(CmpInst::ICMP_EQ, Src, Dst)) {
1356 if (isKnownPredicate(CmpInst::ICMP_EQ, Delta, ML)) {
1723 if (isKnownPredicate(CmpInst::ICMP_EQ, SrcConst, DstConst)) {
1750 if (isKnownPredicate(CmpInst::ICMP_EQ, NewDelta, Product)) {
1832 if (isKnownPredicate(CmpInst::ICMP_EQ, DstConst, SrcConst)) {
1859 if (isKnownPredicate(CmpInst::ICMP_EQ, NewDelta, Product)) {
2759 if (isKnownPredicate(CmpInst::ICMP_EQ, A[K].NegPart, B[K].PosPart))
2762 if (isKnownPredicate(CmpInst::ICMP_EQ, A[K].PosPart, B[K].NegPart))
3157 else if (isKnownPredicate(CmpInst::ICMP_EQ, A, B)) {
lib/Analysis/InstructionSimplify.cpp 84 ExpectedPred = ICmpInst::ICMP_EQ;
1402 EqPred == ICmpInst::ICMP_EQ && IsAnd)
1413 if (EqPred == ICmpInst::ICMP_EQ && (UnsignedPred == ICmpInst::ICMP_ULE ||
1431 EqPred == ICmpInst::ICMP_EQ &&
1460 if (UnsignedPred == ICmpInst::ICMP_UGE && EqPred == ICmpInst::ICMP_EQ)
1465 if (UnsignedPred == ICmpInst::ICMP_UGT && EqPred == ICmpInst::ICMP_EQ &&
1470 if (UnsignedPred == ICmpInst::ICMP_ULT && EqPred == ICmpInst::ICMP_EQ &&
1499 (Pred0 == ICmpInst::ICMP_EQ && ICmpInst::isFalseWhenEqual(Pred1)) ||
1580 if ((IsAnd && P0 != ICmpInst::ICMP_NE) || (!IsAnd && P1 != ICmpInst::ICMP_EQ))
1888 Pred != ICmpInst::Predicate::ICMP_EQ)
2312 (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_NE))
2322 case CmpInst::ICMP_EQ:
2353 if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_NE) {
2516 case CmpInst::ICMP_EQ: // X == 1 -> X
2574 case ICmpInst::ICMP_EQ:
2798 if (Pred == ICmpInst::ICMP_EQ)
2824 case ICmpInst::ICMP_EQ:
2865 case ICmpInst::ICMP_EQ:
2915 if (Pred == ICmpInst::ICMP_EQ)
3022 case CmpInst::ICMP_EQ:
3096 case CmpInst::ICMP_EQ:
3301 case ICmpInst::ICMP_EQ:
3358 case ICmpInst::ICMP_EQ:
3808 Pred == ICmpInst::ICMP_EQ);
3826 Pred == ICmpInst::ICMP_EQ))
3838 Pred == ICmpInst::ICMP_EQ)
3865 Pred == ICmpInst::ICMP_EQ)
3877 if (Pred == ICmpInst::ICMP_EQ) {
lib/Analysis/LazyValueInfo.cpp 969 case ICmpInst::ICMP_EQ:
1200 if (isTrueDest == (Predicate == ICmpInst::ICMP_EQ))
1788 if (Pred == ICmpInst::ICMP_EQ) {
1815 if (Pred == ICmpInst::ICMP_EQ) {
1859 if (Pred == ICmpInst::ICMP_EQ)
lib/Analysis/LoopInfo.cpp 255 if (Pred != ICmpInst::ICMP_NE && Pred != ICmpInst::ICMP_EQ)
lib/Analysis/ScalarEvolution.cpp 4871 !isKnownPredicate(ICmpInst::ICMP_EQ, Expr, ExtendedExpr)) {
5404 case ICmpInst::ICMP_EQ:
7417 case ICmpInst::ICMP_EQ: { // while (X == Y)
8902 Pred = TriviallyTrue ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE;
8967 case ICmpInst::ICMP_EQ:
9338 if (Pred == CmpInst::ICMP_EQ)
9842 if (FoundPred == ICmpInst::ICMP_EQ)
10407 case ICmpInst::ICMP_EQ:
lib/Analysis/ValueTracking.cpp 636 case ICmpInst::ICMP_EQ:
1931 (Pred != ICmpInst::ICMP_EQ && Pred != ICmpInst::ICMP_NE))
1961 BI->getSuccessor(Pred == ICmpInst::ICMP_EQ ? 1 : 0);
lib/AsmParser/LLParser.cpp 5870 case lltok::kw_eq: P = CmpInst::ICMP_EQ; break;
lib/CodeGen/Analysis.cpp 240 case ICmpInst::ICMP_EQ: return ISD::SETEQ;
lib/CodeGen/CodeGenPrepare.cpp 1238 if (Pred == ICmpInst::ICMP_EQ && match(B, m_AllOnes()))
1298 if (Pred == ICmpInst::ICMP_EQ && match(B, m_ZeroInt())) {
lib/CodeGen/ExpandMemCmp.cpp 478 Value *Cmp = Builder.CreateICmp(ICmpInst::ICMP_EQ, LoadSrc1, LoadSrc2);
lib/CodeGen/GlobalISel/IRTranslator.cpp 727 Pred = CmpInst::ICMP_EQ;
lib/CodeGen/GlobalISel/LegalizerHelper.cpp 968 if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_NE) {
977 MIRBuilder.buildICmp(CmpInst::Predicate::ICMP_EQ, ResTy, LHSH, RHSH);
2034 MIRBuilder.buildICmp(CmpInst::ICMP_EQ, SuccessRes, OldValRes, CmpVal);
2234 MIRBuilder.buildICmp(CmpInst::ICMP_EQ, LHS_EQ_RHS, LHS, RHS);
3178 auto IsZero = MIRBuilder.buildICmp(ICmpInst::ICMP_EQ, CondTy, Amt, Zero);
3701 auto MIBICmp = MIRBuilder.buildICmp(CmpInst::ICMP_EQ, LLT::scalar(1),
3752 auto MIBICmp = MIRBuilder.buildICmp(CmpInst::ICMP_EQ, LLT::scalar(1),
3834 auto TCmp = MIRBuilder.buildICmp(CmpInst::ICMP_EQ, S1, T, C);
lib/CodeGen/MIRParser/MIParser.cpp 2268 .Case("eq", CmpInst::ICMP_EQ)
lib/CodeGen/SelectionDAG/FastISel.cpp 2462 case CmpInst::ICMP_EQ: Predicate = CmpInst::FCMP_TRUE; break;
lib/ExecutionEngine/Interpreter/Execution.cpp 339 case ICmpInst::ICMP_EQ: R = executeICMP_EQ(Src1, Src2, Ty); break;
702 case ICmpInst::ICMP_EQ: return executeICMP_EQ(Src1, Src2, Ty);
lib/FuzzMutate/Operations.cpp 33 Ops.push_back(cmpOpDescriptor(1, Instruction::ICmp, CmpInst::ICMP_EQ));
lib/IR/AutoUpgrade.cpp 1160 Pred = ICmpInst::ICMP_EQ;
1345 case 0: Pred = ICmpInst::ICMP_EQ; break;
1779 Rep = Builder.CreateICmp(CmpEq ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_SGT,
1832 Name.startswith("avx512.ptestm") ? ICmpInst::ICMP_NE : ICmpInst::ICMP_EQ;
lib/IR/ConstantFold.cpp 1539 if (V1 == V2) return ICmpInst::ICMP_EQ;
1548 ICmpInst::Predicate pred = ICmpInst::ICMP_EQ;
1681 return ICmpInst::ICMP_EQ;
1771 return ICmpInst::ICMP_EQ;
1828 if (pred == ICmpInst::ICMP_EQ)
1840 if (pred == ICmpInst::ICMP_EQ)
1850 case ICmpInst::ICMP_EQ:
1866 case ICmpInst::ICMP_EQ: return ConstantInt::get(ResultTy, V1 == V2);
2013 case ICmpInst::ICMP_EQ: // We know the constants are equal!
2022 case ICmpInst::ICMP_UGT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_UGE:
2030 case ICmpInst::ICMP_SGT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_SGE:
2038 case ICmpInst::ICMP_ULT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_ULE:
2046 case ICmpInst::ICMP_SLT: case ICmpInst::ICMP_EQ: case ICmpInst::ICMP_SLE:
2067 if (pred == ICmpInst::ICMP_EQ) Result = 0;
lib/IR/ConstantRange.cpp 86 case CmpInst::ICMP_EQ:
158 Pred = CmpInst::ICMP_EQ;
lib/IR/Constants.cpp 262 return PatternMatch::match(ConstantExpr::getICmp(ICmpInst::Predicate::ICMP_EQ,
1982 case CmpInst::ICMP_EQ: case CmpInst::ICMP_NE: case CmpInst::ICMP_UGT:
lib/IR/Instructions.cpp 3541 case ICMP_EQ: return ICMP_NE;
3542 case ICMP_NE: return ICMP_EQ;
3590 case ICmpInst::ICMP_EQ: return "eq";
3606 case ICMP_EQ: case ICMP_NE:
3619 case ICMP_EQ: case ICMP_NE:
3655 case ICMP_EQ: case ICMP_NE:
3750 case ICMP_EQ: case ICMP_UGE: case ICMP_ULE: case ICMP_SGE: case ICMP_SLE:
3772 case ICMP_EQ:
lib/Target/AArch64/AArch64FastISel.cpp 2253 case CmpInst::ICMP_EQ:
2330 case CmpInst::ICMP_EQ:
lib/Target/AArch64/AArch64InstructionSelector.cpp 877 case CmpInst::ICMP_EQ:
988 if (Pred != CmpInst::ICMP_NE && Pred != CmpInst::ICMP_EQ)
994 CBOpc = (Pred == CmpInst::ICMP_EQ ? AArch64::CBZW : AArch64::CBNZW);
996 CBOpc = (Pred == CmpInst::ICMP_EQ ? AArch64::CBZX : AArch64::CBNZX);
2546 case CmpInst::ICMP_EQ:
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp 650 case CmpInst::ICMP_EQ:
680 case CmpInst::ICMP_EQ:
693 case CmpInst::ICMP_EQ:
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp 2046 B.buildICmp(ICmpInst::ICMP_EQ, MI.getOperand(0), Hi32, ApertureReg);
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp 2493 (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_NE) &&
lib/Target/ARM/ARMFastISel.cpp 1198 case CmpInst::ICMP_EQ:
lib/Target/ARM/ARMInstructionSelector.cpp 400 case CmpInst::ICMP_EQ:
lib/Target/ARM/ARMLegalizerInfo.cpp 267 FCmp32Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::O_F32, CmpInst::ICMP_EQ}};
268 FCmp32Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F32, CmpInst::ICMP_EQ}};
269 FCmp32Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F32, CmpInst::ICMP_EQ}};
270 FCmp32Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F32, CmpInst::ICMP_EQ}};
271 FCmp32Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F32, CmpInst::ICMP_EQ}};
272 FCmp32Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F32, CmpInst::ICMP_EQ}};
293 FCmp64Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::O_F64, CmpInst::ICMP_EQ}};
294 FCmp64Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F64, CmpInst::ICMP_EQ}};
295 FCmp64Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F64, CmpInst::ICMP_EQ}};
296 FCmp64Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F64, CmpInst::ICMP_EQ}};
297 FCmp64Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F64, CmpInst::ICMP_EQ}};
298 FCmp64Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F64, CmpInst::ICMP_EQ}};
313 FCmp32Libcalls[CmpInst::FCMP_OEQ] = {{RTLIB::OEQ_F32, CmpInst::ICMP_EQ}};
318 FCmp32Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::O_F32, CmpInst::ICMP_EQ}};
327 FCmp32Libcalls[CmpInst::FCMP_UEQ] = {{RTLIB::OEQ_F32, CmpInst::ICMP_EQ},
331 FCmp64Libcalls[CmpInst::FCMP_OEQ] = {{RTLIB::OEQ_F64, CmpInst::ICMP_EQ}};
336 FCmp64Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::O_F64, CmpInst::ICMP_EQ}};
345 FCmp64Libcalls[CmpInst::FCMP_UEQ] = {{RTLIB::OEQ_F64, CmpInst::ICMP_EQ},
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 686 if (P != CmpInst::ICMP_EQ && P != CmpInst::ICMP_NE)
709 TrueIfZero = (P == CmpInst::ICMP_EQ);
801 if (P != CmpInst::ICMP_EQ && P != CmpInst::ICMP_NE)
805 TrueIfZero = (P == CmpInst::ICMP_EQ);
808 if (P != CmpInst::ICMP_EQ && P != CmpInst::ICMP_NE)
lib/Target/Mips/MipsFastISel.cpp 652 case CmpInst::ICMP_EQ: {
lib/Target/Mips/MipsInstructionSelector.cpp 649 case CmpInst::ICMP_EQ: // LHS == RHS -> (LHS ^ RHS) < 1
lib/Target/PowerPC/PPCFastISel.cpp 236 case CmpInst::ICMP_EQ:
lib/Target/SystemZ/SystemZTDC.cpp 274 } else if (Pred == CmpInst::ICMP_EQ) {
lib/Target/WebAssembly/WebAssemblyFastISel.cpp 1006 case ICmpInst::ICMP_EQ:
lib/Target/X86/X86InstrInfo.cpp 2281 case CmpInst::ICMP_EQ: CC = X86::COND_E; break;
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp 130 if (Pred != CmpInst::ICMP_EQ)
lib/Transforms/IPO/GlobalOpt.cpp 924 case ICmpInst::ICMP_EQ:
1339 Value *Cond = new ICmpInst(CI, ICmpInst::ICMP_EQ, FieldMallocs[i],
lib/Transforms/IPO/WholeProgramDevirt.cpp 1304 B.CreateICmp(IsOne ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE,
lib/Transforms/InstCombine/InstCombineAddSub.cpp 1139 !match(C, m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ,
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp 235 bool IsEq = (Pred == ICmpInst::ICMP_EQ);
469 ICmpInst::Predicate NewCC = IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE;
641 ICmpInst::Predicate NewCC = IsAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE;
822 if (!JoinedByAnd && Pred != ICmpInst::ICMP_EQ)
868 if (!JoinedByAnd && Pred != ICmpInst::ICMP_EQ)
890 auto NewPred = JoinedByAnd ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE;
969 Pred == ICmpInst::ICMP_EQ)
974 Pred == ICmpInst::ICMP_EQ) {
1028 else if (!JoinedByAnd && Cmp1->getPredicate() == ICmpInst::ICMP_EQ)
1045 Pred0 == ICmpInst::ICMP_EQ && Pred1 == ICmpInst::ICMP_UGT) {
1098 if (UnsignedPred == ICmpInst::ICMP_UGT && EqPred == ICmpInst::ICMP_EQ &&
1101 if (UnsignedPred == ICmpInst::ICMP_UGE && EqPred == ICmpInst::ICMP_EQ &&
1128 EqPred == ICmpInst::ICMP_EQ && !IsAnd)
1137 if (UnsignedPred == ICmpInst::ICMP_UGT && EqPred == ICmpInst::ICMP_EQ &&
1210 (PredL == ICmpInst::ICMP_EQ && LHSC->isZero())) {
1219 if (PredL == ICmpInst::ICMP_EQ && PredL == PredR && LHS->hasOneUse() &&
2280 if (PredL == ICmpInst::ICMP_EQ && LHSC && LHSC->isZero()) {
2289 else if (PredR == ICmpInst::ICMP_EQ && RHSC && RHSC->isZero()) {
2337 if (PredL == ICmpInst::ICMP_ULT && PredR == ICmpInst::ICMP_EQ) {
2385 case ICmpInst::ICMP_EQ:
2389 case ICmpInst::ICMP_EQ:
2412 case ICmpInst::ICMP_EQ: // (X u< 13 | X == 14) -> no change
2428 case ICmpInst::ICMP_EQ:
lib/Transforms/InstCombine/InstCombineCalls.cpp 3711 if (CCVal != CmpInst::ICMP_EQ && CCVal != CmpInst::ICMP_NE)
3720 if (CCVal == CmpInst::ICMP_EQ &&
3746 if (CCVal == CmpInst::ICMP_EQ)
lib/Transforms/InstCombine/InstCombineCasts.cpp 952 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
lib/Transforms/InstCombine/InstCombineCompares.cpp 331 return new ICmpInst(ICmpInst::ICMP_EQ, Idx, FirstTrueIdx);
1183 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType()));
1197 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
1199 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
1234 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType()));
1240 return getICmp(I.ICMP_EQ, A, ConstantInt::get(A->getType(), Shift));
1374 if (!match(C, m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ,
1386 Pred == ICmpInst::ICMP_EQ ? ICmpInst::ICMP_SGE
1519 return new ICmpInst(ICmpInst::ICMP_EQ, X, Builder.getInt(*EqC));
1681 if (Cmp.getPredicate() == ICmpInst::ICMP_EQ)
1853 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_UGT
1869 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_SGE
1896 Pred = (Pred == CmpInst::ICMP_EQ) ? CmpInst::ICMP_ULE : CmpInst::ICMP_UGT;
1919 auto BOpc = Pred == CmpInst::ICMP_EQ ? Instruction::And : Instruction::Or;
1932 auto BOpc = Pred == CmpInst::ICMP_EQ ? Instruction::And : Instruction::Or;
1989 Pred = ICmpInst::ICMP_EQ;
1999 return new ICmpInst(ICmpInst::ICMP_EQ, Y, BitWidthMinusOne);
2008 return new ICmpInst(ICmpInst::ICMP_EQ, Y, BitWidthMinusOne);
2053 if ((Pred == ICmpInst::ICMP_EQ || Pred == ICmpInst::ICMP_NE) &&
2083 if ((Pred == ICmpInst::ICMP_EQ || Pred == ICmpInst::ICMP_NE) &&
2117 return new ICmpInst(TrueIfSigned ? ICmpInst::ICMP_NE : ICmpInst::ICMP_EQ,
2127 return new ICmpInst(Pred == ICmpInst::ICMP_ULE ? ICmpInst::ICMP_EQ
2136 return new ICmpInst(Pred == ICmpInst::ICMP_ULT ? ICmpInst::ICMP_EQ
2443 case ICmpInst::ICMP_EQ:
2545 return new ICmpInst(ICmpInst::ICMP_EQ, Builder.CreateOr(Y, C - 1), X);
2609 return new ICmpInst(ICmpInst::ICMP_EQ, Builder.CreateAnd(X, -C),
2714 Cond = Builder.CreateOr(Cond, Builder.CreateICmp(ICmpInst::ICMP_EQ,
2745 if ((Pred == ICmpInst::ICMP_EQ || Pred == ICmpInst::ICMP_SLT ||
2994 return new ICmpInst(isICMP_NE ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE,
3094 ICmpInst::Predicate NewPred = Cmp.getPredicate() == ICmpInst::ICMP_EQ
3145 return CmpInst::Create(Instruction::ICmp, ICmpInst::ICMP_EQ,
3295 case ICmpInst::Predicate::ICMP_EQ:
3405 case ICmpInst::Predicate::ICMP_EQ:
3635 NeedNegation = Pred == ICmpInst::Predicate::ICMP_EQ;
3911 case ICmpInst::ICMP_EQ:
4053 if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_SGE)
4070 if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_SLE)
4087 if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_UGE)
4104 if (Pred == CmpInst::ICMP_EQ || Pred == CmpInst::ICMP_ULE)
4290 return Pred == ICmpInst::ICMP_EQ
4595 case ICmpInst::ICMP_EQ:
4728 case ICmpInst::ICMP_EQ:
4901 if (isChainSelectCmpBranch(SI) && Icmp->getPredicate() == ICmpInst::ICMP_EQ) {
4976 case ICmpInst::ICMP_EQ:
4979 return Pred == CmpInst::ICMP_EQ
5011 Pred == CmpInst::ICMP_EQ ? CmpInst::ICMP_UGE : CmpInst::ICMP_ULT;
5041 return new ICmpInst(ICmpInst::ICMP_EQ, Op0,
5046 return new ICmpInst(ICmpInst::ICMP_EQ, Op0,
5063 return new ICmpInst(ICmpInst::ICMP_EQ, Op0,
5083 return new ICmpInst(ICmpInst::ICMP_EQ, Op0,
5098 return new ICmpInst(ICmpInst::ICMP_EQ, Op0,
5110 return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
5119 return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
5128 return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
5137 return new ICmpInst(ICmpInst::ICMP_EQ, Op0, Op1);
5237 case CmpInst::ICMP_EQ: // A == 0 -> !A
5258 case ICmpInst::ICMP_EQ:
5321 NewPred = ICmpInst::ICMP_EQ;
5344 NewPred = ICmpInst::ICMP_EQ;
5574 if (I.getPredicate() == ICmpInst::ICMP_EQ)
5678 Pred = ICmpInst::ICMP_EQ;
5781 case ICmpInst::ICMP_EQ: // (float)int == 4.4 --> false
lib/Transforms/InstCombine/InstCombineSelect.cpp 69 IsEq = Pred == ICmpInst::ICMP_EQ;
180 if (Pred == ICmpInst::ICMP_EQ) {
505 Cmp->getPredicate() == ICmpInst::ICMP_EQ &&
613 IsEqualZero = IC->getPredicate() == ICmpInst::ICMP_EQ;
1413 if (CmpLHS == TrueVal && Pred == ICmpInst::ICMP_EQ) {
1438 TrueWhenUnset = Pred == ICmpInst::ICMP_EQ;
2178 Pred != ICmpInst::ICMP_EQ)
lib/Transforms/InstCombine/InstCombineShifts.cpp 103 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ,
1105 C, m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ,
lib/Transforms/InstCombine/InstructionCombining.cpp 2488 if (Pred != ICmpInst::ICMP_EQ && Pred != ICmpInst::ICMP_NE)
2492 if (SuccBB != (Pred == ICmpInst::ICMP_EQ ? TrueBB : FalseBB))
2494 assert(FreeInstrBB == (Pred == ICmpInst::ICMP_EQ ? FalseBB : TrueBB) &&
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp 208 if (ICI->getPredicate() != ICmpInst::ICMP_EQ)
lib/Transforms/Scalar/CallSiteSplitting.cpp 142 if (Pred == ICmpInst::ICMP_EQ || Pred == ICmpInst::ICMP_NE)
170 if (Cond.second == ICmpInst::ICMP_EQ)
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp 252 if (LVI->getPredicateOnEdge(ICmpInst::ICMP_EQ, SI, C,
369 LazyValueInfo::Tristate Value = LVI->getPredicateOnEdge(CmpInst::ICMP_EQ,
586 LVI->getPredicateAt(ICmpInst::ICMP_EQ, V,
lib/Transforms/Scalar/Float2Int.cpp 87 return CmpInst::ICMP_EQ;
lib/Transforms/Scalar/GVN.cpp 1454 if (CmpI->getPredicate() == CmpInst::Predicate::ICMP_EQ ||
1879 if ((isKnownTrue && Cmp->getPredicate() == CmpInst::ICMP_EQ) ||
lib/Transforms/Scalar/IndVarSimplify.cpp 373 case CmpInst::FCMP_UEQ: NewPred = CmpInst::ICMP_EQ; break;
419 if ((NewPred == CmpInst::ICMP_EQ || NewPred == CmpInst::ICMP_NE) &&
445 if ((NewPred == CmpInst::ICMP_EQ || NewPred == CmpInst::ICMP_NE) &&
2089 if (Pred != ICmpInst::ICMP_NE && Pred != ICmpInst::ICMP_EQ)
2484 P = ICmpInst::ICMP_EQ;
2958 ICmpInst::ICMP_NE : ICmpInst::ICMP_EQ;
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp 885 else if (Pred == ICmpInst::ICMP_EQ && LatchBrExitIdx == 0) {
950 else if (Pred == ICmpInst::ICMP_EQ && LatchBrExitIdx == 0) {
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 1243 (Pred == ICmpInst::ICMP_EQ && FalseSucc == LoopEntry))
1766 (LbBr->getSuccessor(0) == Body) ? CmpInst::ICMP_NE : CmpInst::ICMP_EQ;
1965 if (CmpOfLoads.BCmpPred != ICmpInst::Predicate::ICMP_EQ)
lib/Transforms/Scalar/LoopRerollPass.cpp 1471 new ICmpInst(BI, CmpInst::ICMP_EQ, NewIV, TakenCount, "exitcond");
lib/Transforms/Scalar/LoopStrengthReduce.cpp 2249 if (Cond->getPredicate() != CmpInst::ICMP_EQ &&
2337 if (Cond->getPredicate() == CmpInst::ICMP_EQ)
lib/Transforms/Scalar/LoopUnswitch.cpp 945 BranchVal = new ICmpInst(OldBranch, ICmpInst::ICMP_EQ, LIC, Val);
1664 if (CI->getPredicate() == CmpInst::ICMP_EQ)
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp 259 if (Predicate != CmpInst::ICMP_NE && Predicate != CmpInst::ICMP_EQ)
292 (Predicate == CmpInst::ICMP_EQ)) {
lib/Transforms/Scalar/MergeICmps.cpp 337 << (ExpectedPredicate == ICmpInst::ICMP_EQ ? "eq" : "ne")
367 auto Result = visitICmp(CmpI, ICmpInst::ICMP_EQ, BaseId);
384 CmpI, FalseBlock == PhiBlock ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE,
lib/Transforms/Scalar/NewGVN.cpp 1594 if (Predicate == CmpInst::ICMP_EQ) {
1607 if ((PBranch->TrueEdge && Predicate == CmpInst::ICMP_EQ) ||
lib/Transforms/Scalar/SCCP.cpp 1240 if (PBranch->TrueEdge && Cmp->getPredicate() == CmpInst::ICMP_EQ) {
lib/Transforms/Utils/LowerMemIntrinsics.cpp 324 new ICmpInst(OrigBB->getTerminator(), ICmpInst::ICMP_EQ, CopyLen,
lib/Transforms/Utils/LowerSwitch.cpp 345 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val,
lib/Transforms/Utils/SimplifyCFG.cpp 505 if (ICI->getPredicate() == (isEQ ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE)) {
741 return BI->getSuccessor(ICI->getPredicate() == ICmpInst::ICMP_EQ);
983 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
3634 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
3658 if (ICI->getPredicate() == ICmpInst::ICMP_EQ)
lib/Transforms/Utils/SimplifyIndVar.cpp 344 ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ, N, D);
lib/Transforms/Vectorize/LoopVectorize.cpp 3054 CmpInst::Create(Instruction::ICmp, CmpInst::ICMP_EQ, Count,
tools/bugpoint/Miscompilation.cpp 884 Value *IsNull = new ICmpInst(*EntryBB, ICmpInst::ICMP_EQ, CachedVal,
tools/clang/lib/CodeGen/CGBuiltin.cpp 5327 ICmpInst::ICMP_EQ, "vceqz");
7741 ICmpInst::FCMP_OEQ, ICmpInst::ICMP_EQ, "vceqz");
7856 case NEON::BI__builtin_neon_vceqd_u64:P = llvm::ICmpInst::ICMP_EQ;break;
9637 Pred = ICmpInst::ICMP_EQ;
9723 case 0: Pred = ICmpInst::ICMP_EQ; break;
tools/clang/lib/CodeGen/CGExprAgg.cpp 952 return {"cmp.eq", FI::FCMP_OEQ, II::ICMP_EQ, II::ICMP_EQ};
952 return {"cmp.eq", FI::FCMP_OEQ, II::ICMP_EQ, II::ICMP_EQ};
tools/clang/lib/CodeGen/CGExprScalar.cpp 807 VISITCOMP(EQ, ICMP_EQ , ICMP_EQ , FCMP_OEQ)
807 VISITCOMP(EQ, ICMP_EQ , ICMP_EQ , FCMP_OEQ)
2619 Result = Builder.CreateICmp(llvm::CmpInst::ICMP_EQ, Oper, Zero, "cmp");
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp 1054 Eq = llvm::ICmpInst::ICMP_EQ;
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp 2832 Eq = llvm::ICmpInst::ICMP_EQ;
tools/lldb/source/Expression/IRInterpreter.cpp 561 case CmpInst::ICMP_EQ:
1117 case CmpInst::ICMP_EQ:
tools/polly/lib/Analysis/ScopBuilder.cpp 267 case ICmpInst::ICMP_EQ:
408 buildConditionSet(ICmpInst::ICMP_EQ, isl::manage_copy(LHS),
tools/polly/lib/CodeGen/IslExprBuilder.cpp 528 {CmpInst::ICMP_EQ, CmpInst::ICMP_EQ},
528 {CmpInst::ICMP_EQ, CmpInst::ICMP_EQ},
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp 207 Builder.CreateICmp(llvm::CmpInst::Predicate::ICMP_EQ, HasWork,
214 Builder.CreateICmp(llvm::CmpInst::Predicate::ICMP_EQ, HasWork,
unittests/Analysis/ValueLatticeTest.cpp 97 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV1)->isOneValue());
110 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV2)->isZeroValue());
120 EXPECT_EQ(LV2.getCompare(CmpInst::ICMP_EQ, I1Ty, LV3), nullptr);
130 EXPECT_EQ(LV3.getCompare(CmpInst::ICMP_EQ, I1Ty, LV4), nullptr);
171 EXPECT_TRUE(isa<UndefValue>(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV2)));
unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp 690 auto ICmp = B.buildICmp(CmpInst::ICMP_EQ, s1, Copies[0], Copies[1]);
unittests/CodeGen/MachineOperandTest.cpp 387 MachineOperand MO = MachineOperand::CreatePredicate(CmpInst::ICMP_EQ);
392 ASSERT_TRUE(MO.getPredicate() == CmpInst::ICMP_EQ);
unittests/IR/ConstantRangeTest.cpp 1336 EXPECT_TRUE(ConstantRange::makeSatisfyingICmpRegion(ICmpInst::ICMP_EQ,
1738 EXPECT_EQ(Pred, CmpInst::ICMP_EQ);
1756 EXPECT_EQ(Pred, CmpInst::ICMP_EQ);
1765 EXPECT_EQ(Pred, CmpInst::ICMP_EQ);
unittests/IR/ConstantsTest.cpp 273 CHECK(ConstantExpr::getICmp(CmpInst::ICMP_EQ, P0, P4), "icmp eq i32 " P0STR
unittests/IR/PatternMatch.cpp 77 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, 0))
80 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, 0))
83 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, 0))
87 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, 1))
90 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, 1))
93 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, 1))
97 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, -1))
100 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, -1))
103 m_SpecificInt_ICMP(ICmpInst::Predicate::ICMP_EQ, APInt(BitWidth, -1))