Home
last modified time | relevance | path

Searched refs:CmpLHS (Results 1 – 12 of 12) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp305 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpAndOr() local
313 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1)))) in foldSelectICmpAndOr()
325 Value *V = CmpLHS; in foldSelectICmpAndOr()
362 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz() local
388 if (match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) || in foldSelectCttzCtlz()
389 match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) { in foldSelectCttzCtlz()
408 Value *CmpLHS = ICI->getOperand(0); in visitSelectInstWithICmp() local
437 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp()
438 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp()
452 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
[all …]
/external/llvm/lib/Target/Mips/
DMips16ISelDAGToDAG.cpp261 SDValue InFlag = Node->getOperand(2), CmpLHS; in selectNode() local
269 CmpLHS = InFlag.getValue(0); in selectNode()
272 CmpLHS = InFlag.getOperand(0); in selectNode()
276 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) }; in selectNode()
DMipsSEISelDAGToDAG.h40 SDNode *selectAddESubE(unsigned MOp, SDValue InFlag, SDValue CmpLHS,
DMipsSEISelDAGToDAG.cpp236 SDValue CmpLHS, SDLoc DL, in selectAddESubE() argument
250 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) }; in selectAddESubE()
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp226 Value *CmpLHS = ICI->getOperand(0); in extractAlignmentInfo() local
228 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); in extractAlignmentInfo()
231 std::swap(CmpLHS, CmpRHS); in extractAlignmentInfo()
235 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS); in extractAlignmentInfo()
DGVN.cpp1834 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic() local
1836 if (isa<Constant>(CmpLHS)) in processAssumeIntrinsic()
1837 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic()
1841 if (RHSConst != nullptr && !isa<Constant>(CmpLHS)) in processAssumeIntrinsic()
1842 ReplaceWithConstMap[CmpLHS] = RHSConst; in processAssumeIntrinsic()
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1405 const Value *CmpLHS = CI->getOperand(0); in X86SelectBranch() local
1415 CmpRHS = CmpLHS; in X86SelectBranch()
1447 std::swap(CmpLHS, CmpRHS); in X86SelectBranch()
1450 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) in X86SelectBranch()
1806 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitCMoveSelect() local
1809 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect()
1811 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType()); in X86FastEmitCMoveSelect()
1813 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) in X86FastEmitCMoveSelect()
1896 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitSSESelect() local
1906 CmpRHS = CmpLHS; in X86FastEmitSSESelect()
[all …]
/external/llvm/lib/Analysis/
DValueTracking.cpp3859 Value *CmpLHS, Value *CmpRHS, in matchSelectPattern() argument
3862 LHS = CmpLHS; in matchSelectPattern()
3875 if (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) && in matchSelectPattern()
3889 bool LHSSafe = isKnownNonNaN(CmpLHS, 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()
3956 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in matchSelectPattern()
3957 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in matchSelectPattern()
3962 return {(CmpLHS == TrueVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false}; in matchSelectPattern()
[all …]
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()
3345 Value *CmpLHS = ICI->getOperand(0); in SimplifySelectInst() local
3353 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst()
3358 X = CmpLHS; in SimplifySelectInst()
3363 X = CmpLHS; in SimplifySelectInst()
3416 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst()
3418 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, Q, MaxRecurse) == in SimplifySelectInst()
3421 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst()
[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.cpp1657 if ((Cases[0].CmpLHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
1659 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
1660 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches()
1737 ExportFromCurrentBlock(SwitchCases[i].CmpLHS); in visitBr()
1770 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase()
1789 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); in visitSwitchCase()
1795 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) { in visitSwitchCase()
DDAGCombiner.cpp13835 SDValue CmpLHS; in SimplifySelectOps() local
13840 CmpLHS = TheSelect->getOperand(0); in SimplifySelectOps()
13847 CmpLHS = Cmp.getOperand(0); in SimplifySelectOps()
13852 Sqrt.getOperand(0) == CmpLHS && (CC == ISD::SETOLT || in SimplifySelectOps()