Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp306 Value *CmpRHS = IC->getOperand(1); in foldSelectICmpAndOr() local
308 if (!match(CmpRHS, m_Zero())) in foldSelectICmpAndOr()
363 Value *CmpRHS = ICI->getOperand(1); in foldSelectCttzCtlz() local
366 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
409 Value *CmpRHS = ICI->getOperand(1); in visitSelectInstWithICmp() local
417 if (ConstantInt *CI = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
444 else if (CmpRHS->getType()->getScalarSizeInBits() in visitSelectInstWithICmp()
482 CmpRHS = AdjustedRHS; in visitSelectInstWithICmp()
486 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
507 if (ConstantInt *Cmp = dyn_cast<ConstantInt>(CmpRHS)) { in visitSelectInstWithICmp()
[all …]
DInstCombineCompares.cpp862 ConstantInt *CmpRHS = cast<ConstantInt>(ICI.getOperand(1)); in FoldICmpDivCst() local
863 const APInt &CmpRHSV = CmpRHS->getValue(); in FoldICmpDivCst()
890 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS); in FoldICmpDivCst()
896 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS; in FoldICmpDivCst()
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp227 Value *CmpRHS = ICI->getOperand(1); in extractAlignmentInfo() local
229 const SCEV *CmpRHSSCEV = SE->getSCEV(CmpRHS); in extractAlignmentInfo()
231 std::swap(CmpLHS, CmpRHS); in extractAlignmentInfo()
DGVN.cpp1835 Value *CmpRHS = CmpI->getOperand(1); in processAssumeIntrinsic() local
1837 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic()
1838 auto *RHSConst = dyn_cast<Constant>(CmpRHS); in processAssumeIntrinsic()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1406 const Value *CmpRHS = CI->getOperand(1); in X86SelectBranch() local
1413 const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS); in X86SelectBranch()
1415 CmpRHS = CmpLHS; in X86SelectBranch()
1447 std::swap(CmpLHS, CmpRHS); in X86SelectBranch()
1450 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) in X86SelectBranch()
1807 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitCMoveSelect() local
1809 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect()
1813 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) in X86FastEmitCMoveSelect()
1897 const Value *CmpRHS = CI->getOperand(1); in X86FastEmitSSESelect() local
1904 const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS); in X86FastEmitSSESelect()
[all …]
/external/llvm/lib/Analysis/
DInstructionSimplify.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()
3346 Value *CmpRHS = ICI->getOperand(1); in SimplifySelectInst() local
3354 match(CmpRHS, m_Zero())) { in SimplifySelectInst()
3357 } else if (Pred == ICmpInst::ICMP_SLT && match(CmpRHS, m_Zero())) { in SimplifySelectInst()
3362 } else if (Pred == ICmpInst::ICMP_SGT && match(CmpRHS, m_AllOnes())) { in SimplifySelectInst()
3396 if (match(CmpRHS, m_APInt(C))) { in SimplifySelectInst()
3416 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst()
3418 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, Q, MaxRecurse) == in SimplifySelectInst()
[all …]
DValueTracking.cpp3859 Value *CmpLHS, Value *CmpRHS, in matchSelectPattern() argument
3863 RHS = CmpRHS; in matchSelectPattern()
3876 !isKnownNonZero(CmpRHS)) in matchSelectPattern()
3890 bool RHSSafe = isKnownNonNaN(CmpRHS, FMF); in matchSelectPattern()
3922 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
3923 std::swap(CmpLHS, CmpRHS); in matchSelectPattern()
3933 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
3955 if (ConstantInt *C1 = dyn_cast<ConstantInt>(CmpRHS)) { in matchSelectPattern()
4055 Value *CmpRHS = CmpI->getOperand(1); in matchSelectPattern() local
4069 return ::matchSelectPattern(Pred, FMF, CmpLHS, CmpRHS, in matchSelectPattern()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h224 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC()
234 const Value *CmpLHS, *CmpMHS, *CmpRHS; member
DSelectionDAGBuilder.cpp1658 Cases[0].CmpRHS == Cases[1].CmpRHS) || in ShouldEmitAsBranches()
1659 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
1660 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches()
1666 if (Cases[0].CmpRHS == Cases[1].CmpRHS && in ShouldEmitAsBranches()
1668 isa<Constant>(Cases[0].CmpRHS) && in ShouldEmitAsBranches()
1669 cast<Constant>(Cases[0].CmpRHS)->isNullValue()) { in ShouldEmitAsBranches()
1738 ExportFromCurrentBlock(SwitchCases[i].CmpRHS); in visitBr()
1777 if (CB.CmpRHS == ConstantInt::getTrue(*DAG.getContext()) && in visitSwitchCase()
1780 else if (CB.CmpRHS == ConstantInt::getFalse(*DAG.getContext()) && in visitSwitchCase()
1785 Cond = DAG.getSetCC(dl, MVT::i1, CondLHS, getValue(CB.CmpRHS), CB.CC); in visitSwitchCase()
[all …]
DTargetLowering.cpp1757 SDValue CmpRHS = DAG.getConstant(C1.lshr(ShiftBits), dl, CmpTy); in SimplifySetCC() local
1758 return DAG.getSetCC(dl, VT, Shift, CmpRHS, Cond); in SimplifySetCC()
1788 SDValue CmpRHS = DAG.getConstant(NewC, dl, CmpTy); in SimplifySetCC() local
1789 return DAG.getSetCC(dl, VT, Shift, CmpRHS, NewCond); in SimplifySetCC()