Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp347 Value *CmpLHS = ICI->getOperand(0); in visitSelectInstWithICmp() local
384 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp()
385 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp()
399 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
401 CmpLHS = TrueVal; in visitSelectInstWithICmp()
403 } else if (match(FalseVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
405 CmpLHS = FalseVal; in visitSelectInstWithICmp()
413 if (match(TrueVal, m_ZExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
415 CmpLHS = TrueVal; in visitSelectInstWithICmp()
417 } else if (match(FalseVal, m_ZExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp316 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpAndOr() local
324 if (!match(CmpLHS, m_And(m_Value(X), m_Power2(C1)))) in foldSelectICmpAndOr()
336 Value *V = CmpLHS; in foldSelectICmpAndOr()
373 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz() local
399 if (match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) || in foldSelectCttzCtlz()
400 match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) { in foldSelectCttzCtlz()
419 Value *CmpLHS = ICI->getOperand(0); in visitSelectInstWithICmp() local
448 if ((CmpLHS == TrueVal && AdjustedRHS == FalseVal) || in visitSelectInstWithICmp()
449 (CmpLHS == FalseVal && AdjustedRHS == TrueVal)) in visitSelectInstWithICmp()
463 if (match(TrueVal, m_SExt(m_Specific(CmpLHS))) && in visitSelectInstWithICmp()
[all …]
/external/llvm/lib/Target/Mips/
DMips16ISelDAGToDAG.cpp196 SDValue InFlag = Node->getOperand(2), CmpLHS; in trySelect() local
205 CmpLHS = InFlag.getValue(0); in trySelect()
208 CmpLHS = InFlag.getOperand(0); in trySelect()
212 SDValue Ops[] = {CmpLHS, InFlag.getOperand(1)}; in trySelect()
DMipsSEISelDAGToDAG.h42 void selectAddESubE(unsigned MOp, SDValue InFlag, SDValue CmpLHS,
DMipsSEISelDAGToDAG.cpp241 SDValue CmpLHS, const SDLoc &DL, in selectAddESubE() argument
255 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) }; in selectAddESubE()
/external/swiftshader/third_party/LLVM/lib/Target/Mips/
DMipsISelDAGToDAG.cpp211 SDValue InFlag = Node->getOperand(2), CmpLHS; in Select() local
219 CmpLHS = InFlag.getValue(0); in Select()
222 CmpLHS = InFlag.getOperand(0); in Select()
226 SDValue Ops[] = { CmpLHS, InFlag.getOperand(1) }; in Select()
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp215 Value *CmpLHS = ICI->getOperand(0); in extractAlignmentInfo() local
217 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); in extractAlignmentInfo()
220 std::swap(CmpLHS, CmpRHS); in extractAlignmentInfo()
224 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS); in extractAlignmentInfo()
DGuardWidening.cpp501 Value *CmpLHS = IC->getOperand(0), *CmpRHS = IC->getOperand(1); in parseRangeChecks() local
503 std::swap(CmpLHS, CmpRHS); in parseRangeChecks()
508 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())), in parseRangeChecks()
DGVN.cpp1725 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic() local
1727 if (isa<Constant>(CmpLHS)) in processAssumeIntrinsic()
1728 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic()
1732 if (RHSConst != nullptr && !isa<Constant>(CmpLHS)) in processAssumeIntrinsic()
1733 ReplaceWithConstMap[CmpLHS] = RHSConst; in processAssumeIntrinsic()
/external/llvm/lib/Analysis/
DValueTracking.cpp3708 Value *CmpLHS, Value *CmpRHS, in matchSelectPattern() argument
3711 LHS = CmpLHS; in matchSelectPattern()
3724 if (!FMF.noSignedZeros() && !isKnownNonZero(CmpLHS) && in matchSelectPattern()
3738 bool LHSSafe = isKnownNonNaN(CmpLHS, FMF); in matchSelectPattern()
3771 if (TrueVal == CmpRHS && FalseVal == CmpLHS) { in matchSelectPattern()
3772 std::swap(CmpLHS, CmpRHS); in matchSelectPattern()
3782 if (TrueVal == CmpLHS && FalseVal == CmpRHS) { in matchSelectPattern()
3805 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) || in matchSelectPattern()
3806 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) { in matchSelectPattern()
3811 return {(CmpLHS == TrueVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false}; in matchSelectPattern()
[all …]
DInstructionSimplify.cpp1937 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); in ExtractEquivalentCondition() local
1938 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition()
1941 LHS == CmpRHS && RHS == CmpLHS) in ExtractEquivalentCondition()
3405 Value *CmpLHS = ICI->getOperand(0); in SimplifySelectInst() local
3413 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst()
3418 X = CmpLHS; in SimplifySelectInst()
3423 X = CmpLHS; in SimplifySelectInst()
3476 if (SimplifyWithOpReplaced(FalseVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst()
3478 SimplifyWithOpReplaced(FalseVal, CmpRHS, CmpLHS, Q, MaxRecurse) == in SimplifySelectInst()
3481 if (SimplifyWithOpReplaced(TrueVal, CmpLHS, CmpRHS, Q, MaxRecurse) == in SimplifySelectInst()
[all …]
/external/llvm/lib/Target/X86/
DX86FastISel.cpp1578 const Value *CmpLHS = CI->getOperand(0); in X86SelectBranch() local
1588 CmpRHS = CmpLHS; in X86SelectBranch()
1620 std::swap(CmpLHS, CmpRHS); in X86SelectBranch()
1623 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) in X86SelectBranch()
1979 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitCMoveSelect() local
1982 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect()
1984 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType()); in X86FastEmitCMoveSelect()
1986 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) in X86FastEmitCMoveSelect()
2069 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitSSESelect() local
2079 CmpRHS = CmpLHS; in X86FastEmitSSESelect()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.h211 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC()
221 const Value *CmpLHS, *CmpMHS, *CmpRHS; member
DSelectionDAGBuilder.cpp1423 if ((Cases[0].CmpLHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
1425 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
1426 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches()
1506 ExportFromCurrentBlock(SwitchCases[i].CmpLHS); in visitBr()
1539 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase()
1558 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); in visitSwitchCase()
1564 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) { in visitSwitchCase()
/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.cpp1762 if ((Cases[0].CmpLHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
1764 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
1765 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches()
1842 ExportFromCurrentBlock(SwitchCases[i].CmpLHS); in visitBr()
1875 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase()
1894 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); in visitSwitchCase()
1900 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) { in visitSwitchCase()
DDAGCombiner.cpp14019 SDValue CmpLHS; in SimplifySelectOps() local
14024 CmpLHS = TheSelect->getOperand(0); in SimplifySelectOps()
14031 CmpLHS = Cmp.getOperand(0); in SimplifySelectOps()
14036 Sqrt.getOperand(0) == CmpLHS && (CC == ISD::SETOLT || in SimplifySelectOps()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp2514 SDValue CmpLHS = Cond.getOperand(0); in performCtlzCombine() local
2519 RHS.getOperand(0) == CmpLHS && in performCtlzCombine()
2521 return getFFBH_U32(*this, DAG, SL, CmpLHS); in performCtlzCombine()
2527 LHS.getOperand(0) == CmpLHS && in performCtlzCombine()
2529 return getFFBH_U32(*this, DAG, SL, CmpLHS); in performCtlzCombine()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DInstructionSimplify.cpp1410 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); in ExtractEquivalentCondition() local
1411 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition()
1414 LHS == CmpRHS && RHS == CmpLHS) in ExtractEquivalentCondition()