Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineSelect.cpp300 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndOr() local
302 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
357 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz() local
360 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
405 Value *CmpRHS = ICI->getOperand(1); in visitSelectInstWithICmp() local
413 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
440 else if (CmpRHS->getType()->getScalarSizeInBits() in visitSelectInstWithICmp()
478 CmpRHS = AdjustedRHS; in visitSelectInstWithICmp()
482 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
503 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
[all …]
HDInstCombineCompares.cpp792 ConstantInt *CmpRHS = cast<ConstantInt>(ICI.getOperand(1)); in FoldICmpDivCst() local
793 const APInt &CmpRHSV = CmpRHS->getValue(); in FoldICmpDivCst()
820 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS); in FoldICmpDivCst()
826 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS; in FoldICmpDivCst()
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDAlignmentFromAssumptions.cpp223 Value *CmpRHS = ICI->getOperand(1); in extractAlignmentInfo() local
225 const SCEV *CmpRHSSCEV = SE->getSCEV(CmpRHS); in extractAlignmentInfo()
227 std::swap(CmpLHS, CmpRHS); in extractAlignmentInfo()
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86FastISel.cpp1377 const Value *CmpRHS = CI->getOperand(1); in X86SelectBranch() local
1384 const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS); in X86SelectBranch()
1386 CmpRHS = CmpLHS; in X86SelectBranch()
1418 std::swap(CmpLHS, CmpRHS); in X86SelectBranch()
1421 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) in X86SelectBranch()
1802 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitCMoveSelect() local
1804 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect()
1808 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) in X86FastEmitCMoveSelect()
1892 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitSSESelect() local
1899 const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS); in X86FastEmitSSESelect()
[all …]
/NextBSD/contrib/llvm/lib/Analysis/
HDInstructionSimplify.cpp1924 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); in ExtractEquivalentCondition() local
1925 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition()
1928 LHS == CmpRHS && RHS == CmpLHS) in ExtractEquivalentCondition()
3288 Value *CmpRHS = ICI->getOperand(1); in SimplifySelectInst() local
3296 match(CmpRHS, m_Zero())) { in SimplifySelectInst()
3299 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in SimplifySelectInst()
3304 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in SimplifySelectInst()
3338 if (match(CmpRHS, m_APInt(C))) { in SimplifySelectInst()
3358 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst()
3360 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, Q, MaxRecurse) == in SimplifySelectInst()
[all …]
HDValueTracking.cpp3320 Value *CmpLHS, Value *CmpRHS, in matchSelectPattern() argument
3324 RHS = CmpRHS; in matchSelectPattern()
3327 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
3342 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
3356 if (ConstantInt *C1 = dyn_cast<ConstantInt>(CmpRHS)) { in matchSelectPattern()
3426 Value *CmpRHS = CmpI->getOperand(1); in matchSelectPattern() local
3437 return ::matchSelectPattern(Pred, CmpLHS, CmpRHS, in matchSelectPattern()
3441 return ::matchSelectPattern(Pred, CmpLHS, CmpRHS, in matchSelectPattern()
3445 return ::matchSelectPattern(Pred, CmpLHS, CmpRHS, TrueVal, FalseVal, in matchSelectPattern()
/NextBSD/contrib/llvm/lib/CodeGen/SelectionDAG/
HDSelectionDAGBuilder.h224 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC()
234 const Value *CmpLHS, *CmpMHS, *CmpRHS; member
HDSelectionDAGBuilder.cpp1525 Cases[0].CmpRHS == Cases[1].CmpRHS) || in ShouldEmitAsBranches()
1526 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
1527 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches()
1533 if (Cases[0].CmpRHS == Cases[1].CmpRHS && in ShouldEmitAsBranches()
1535 isa<Constant>(Cases[0].CmpRHS) && in ShouldEmitAsBranches()
1536 cast<Constant>(Cases[0].CmpRHS)->isNullValue()) { in ShouldEmitAsBranches()
1603 ExportFromCurrentBlock(SwitchCases[i].CmpRHS); in visitBr()
1642 if (CB.CmpRHS == ConstantInt::getTrue(*DAG.getContext()) && in visitSwitchCase()
1645 else if (CB.CmpRHS == ConstantInt::getFalse(*DAG.getContext()) && in visitSwitchCase()
1650 Cond = DAG.getSetCC(dl, MVT::i1, CondLHS, getValue(CB.CmpRHS), CB.CC); in visitSwitchCase()
[all …]
HDTargetLowering.cpp1744 SDValue CmpRHS = DAG.getConstant(C1.lshr(ShiftBits), dl, CmpTy); in SimplifySetCC() local
1745 return DAG.getSetCC(dl, VT, Shift, CmpRHS, Cond); in SimplifySetCC()
1775 SDValue CmpRHS = DAG.getConstant(NewC, dl, CmpTy); in SimplifySetCC() local
1776 return DAG.getSetCC(dl, VT, Shift, CmpRHS, NewCond); in SimplifySetCC()