Searched refs:CmpRHS (Results 1 – 7 of 7) sorted by relevance
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 36 Value *CmpRHS = ICI->getOperand(1); in MatchSelectPattern() local 41 RHS = CmpRHS; in MatchSelectPattern() 44 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in MatchSelectPattern() 59 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in MatchSelectPattern() 73 if (ConstantInt *C1 = dyn_cast<ConstantInt>(CmpRHS)) { in MatchSelectPattern() 406 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndOr() local 408 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr() 474 Value *CmpRHS = ICI->getOperand(1); in visitSelectInstWithICmp() local 482 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp() 517 else if (CmpRHS->getType()->getScalarSizeInBits() in visitSelectInstWithICmp() [all …]
|
D | InstCombineCompares.cpp | 806 ConstantInt *CmpRHS = cast<ConstantInt>(ICI.getOperand(1)); in FoldICmpDivCst() local 807 const APInt &CmpRHSV = CmpRHS->getValue(); in FoldICmpDivCst() 834 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS); in FoldICmpDivCst() 840 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS; in FoldICmpDivCst()
|
/external/llvm/lib/Target/X86/ |
D | X86FastISel.cpp | 1353 const Value *CmpRHS = CI->getOperand(1); in X86SelectBranch() local 1360 const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS); in X86SelectBranch() 1362 CmpRHS = CmpLHS; in X86SelectBranch() 1394 std::swap(CmpLHS, CmpRHS); in X86SelectBranch() 1397 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT)) in X86SelectBranch() 1778 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitCMoveSelect() local 1780 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect() 1784 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT)) in X86FastEmitCMoveSelect() 1868 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitSSESelect() local 1875 const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS); in X86FastEmitSSESelect() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 214 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC() 224 const Value *CmpLHS, *CmpMHS, *CmpRHS; member
|
D | SelectionDAGBuilder.cpp | 1535 Cases[0].CmpRHS == Cases[1].CmpRHS) || in ShouldEmitAsBranches() 1536 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches() 1537 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches() 1543 if (Cases[0].CmpRHS == Cases[1].CmpRHS && in ShouldEmitAsBranches() 1545 isa<Constant>(Cases[0].CmpRHS) && in ShouldEmitAsBranches() 1546 cast<Constant>(Cases[0].CmpRHS)->isNullValue()) { in ShouldEmitAsBranches() 1620 ExportFromCurrentBlock(SwitchCases[i].CmpRHS); in visitBr() 1659 if (CB.CmpRHS == ConstantInt::getTrue(*DAG.getContext()) && in visitSwitchCase() 1662 else if (CB.CmpRHS == ConstantInt::getFalse(*DAG.getContext()) && in visitSwitchCase() 1667 Cond = DAG.getSetCC(dl, MVT::i1, CondLHS, getValue(CB.CmpRHS), CB.CC); in visitSwitchCase() [all …]
|
D | TargetLowering.cpp | 1678 SDValue CmpRHS = DAG.getConstant(C1.lshr(ShiftBits), CmpTy); in SimplifySetCC() local 1679 return DAG.getSetCC(dl, VT, Shift, CmpRHS, Cond); in SimplifySetCC() 1706 SDValue CmpRHS = DAG.getConstant(NewC, CmpTy); in SimplifySetCC() local 1707 return DAG.getSetCC(dl, VT, Shift, CmpRHS, NewCond); in SimplifySetCC()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1645 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); in ExtractEquivalentCondition() local 1646 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition() 1649 LHS == CmpRHS && RHS == CmpLHS) in ExtractEquivalentCondition()
|