Home
last modified time | relevance | path

Searched refs:CmpRHS (Results 1 – 7 of 7) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp36 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 …]
DInstCombineCompares.cpp806 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/
DX86FastISel.cpp1353 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/
DSelectionDAGBuilder.h214 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC()
224 const Value *CmpLHS, *CmpMHS, *CmpRHS; member
DSelectionDAGBuilder.cpp1535 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 …]
DTargetLowering.cpp1678 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/
DInstructionSimplify.cpp1645 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()