Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp543 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpLshrAshr() local
564 match(CmpLHS, m_Specific(X))) { in foldSelectICmpLshrAshr()
596 Value *CmpLHS = IC->getOperand(0); in foldSelectICmpAndOr() local
608 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndOr()
611 V = CmpLHS; in foldSelectICmpAndOr()
623 if (!match(CmpLHS, m_OneUse(m_Trunc(m_Value(V))))) in foldSelectICmpAndOr()
626 C1Log = CmpLHS->getType()->getScalarSizeInBits() - 1; in foldSelectICmpAndOr()
853 Value *CmpLHS = ICI->getOperand(0); in foldSelectCttzCtlz() local
873 if (!match(Count, m_Intrinsic<Intrinsic::cttz>(m_Specific(CmpLHS))) && in foldSelectCttzCtlz()
874 !match(Count, m_Intrinsic<Intrinsic::ctlz>(m_Specific(CmpLHS)))) in foldSelectCttzCtlz()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp528 Instruction *CmpLHS = dyn_cast<Instruction>(CI->getOperand(0)); in computeUnlikelySuccessors() local
529 PHINode *CmpPHI = dyn_cast<PHINode>(CmpLHS); in computeUnlikelySuccessors()
533 while (!CmpPHI && CmpLHS && isa<BinaryOperator>(CmpLHS) && in computeUnlikelySuccessors()
534 isa<Constant>(CmpLHS->getOperand(1))) { in computeUnlikelySuccessors()
536 if (!L->contains(CmpLHS)) in computeUnlikelySuccessors()
538 InstChain.push_back(cast<BinaryOperator>(CmpLHS)); in computeUnlikelySuccessors()
539 CmpLHS = dyn_cast<Instruction>(CmpLHS->getOperand(0)); in computeUnlikelySuccessors()
540 if (CmpLHS) in computeUnlikelySuccessors()
541 CmpPHI = dyn_cast<PHINode>(CmpLHS); in computeUnlikelySuccessors()
DValueTracking.cpp4661 Value *CmpLHS, Value *CmpRHS, in matchFastFloatClamp() argument
4690 m_CombineOr(m_OrdFMin(m_Specific(CmpLHS), m_APFloat(FC2)), in matchFastFloatClamp()
4691 m_UnordFMin(m_Specific(CmpLHS), m_APFloat(FC2)))) && in matchFastFloatClamp()
4700 m_CombineOr(m_OrdFMax(m_Specific(CmpLHS), m_APFloat(FC2)), in matchFastFloatClamp()
4701 m_UnordFMax(m_Specific(CmpLHS), m_APFloat(FC2)))) && in matchFastFloatClamp()
4715 Value *CmpLHS, Value *CmpRHS, in matchClamp() argument
4726 if (match(FalseVal, m_SMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
4731 if (match(FalseVal, m_SMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
4736 if (match(FalseVal, m_UMin(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
4741 if (match(FalseVal, m_UMax(m_Specific(CmpLHS), m_APInt(C2))) && in matchClamp()
[all …]
DInstructionSimplify.cpp2303 Value *CmpLHS = Cmp->getOperand(0), *CmpRHS = Cmp->getOperand(1); in ExtractEquivalentCondition() local
2304 if (Pred == Cmp->getPredicate() && LHS == CmpLHS && RHS == CmpRHS) in ExtractEquivalentCondition()
2307 LHS == CmpRHS && RHS == CmpLHS) in ExtractEquivalentCondition()
3840 static Value *simplifySelectWithFakeICmpEq(Value *CmpLHS, Value *CmpRHS, in simplifySelectWithFakeICmpEq() argument
3845 if (!decomposeBitTestICmp(CmpLHS, CmpRHS, Pred, X, Mask)) in simplifySelectWithFakeICmpEq()
3858 Value *CmpLHS, *CmpRHS; in simplifySelectWithICmpCond() local
3859 if (!match(CondVal, m_ICmp(Pred, m_Value(CmpLHS), m_Value(CmpRHS)))) in simplifySelectWithICmpCond()
3865 if (match(CmpLHS, m_And(m_Value(X), m_APInt(Y)))) in simplifySelectWithICmpCond()
3878 if (match(TrueVal, isFsh) && FalseVal == X && CmpLHS == ShAmt && in simplifySelectWithICmpCond()
3883 if (match(FalseVal, isFsh) && TrueVal == X && CmpLHS == ShAmt && in simplifySelectWithICmpCond()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp213 Value *CmpLHS = ICI->getOperand(0); in extractAlignmentInfo() local
215 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); in extractAlignmentInfo()
218 std::swap(CmpLHS, CmpRHS); in extractAlignmentInfo()
222 BinaryOperator *CmpBO = dyn_cast<BinaryOperator>(CmpLHS); in extractAlignmentInfo()
DGVN.cpp1510 Value *CmpLHS = CmpI->getOperand(0); in processAssumeIntrinsic() local
1517 if (isa<Constant>(CmpLHS) && !isa<Constant>(CmpRHS)) in processAssumeIntrinsic()
1518 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic()
1519 if (!isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS)) in processAssumeIntrinsic()
1520 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic()
1521 if ((isa<Argument>(CmpLHS) && isa<Argument>(CmpRHS)) || in processAssumeIntrinsic()
1522 (isa<Instruction>(CmpLHS) && isa<Instruction>(CmpRHS))) { in processAssumeIntrinsic()
1525 uint32_t LVN = VN.lookupOrAdd(CmpLHS); in processAssumeIntrinsic()
1528 std::swap(CmpLHS, CmpRHS); in processAssumeIntrinsic()
1533 if (isa<Constant>(CmpLHS) && isa<Constant>(CmpRHS)) in processAssumeIntrinsic()
[all …]
DJumpThreading.cpp771 Value *CmpLHS = Cmp->getOperand(0); in ComputeValueKnownInPredecessorsImpl() local
775 PHINode *PN = dyn_cast<PHINode>(CmpLHS); in ComputeValueKnownInPredecessorsImpl()
789 if (PN == CmpLHS) { in ComputeValueKnownInPredecessorsImpl()
793 LHS = CmpLHS->DoPHITranslation(BB, PredBB); in ComputeValueKnownInPredecessorsImpl()
827 if (!isa<Instruction>(CmpLHS) || in ComputeValueKnownInPredecessorsImpl()
828 cast<Instruction>(CmpLHS)->getParent() != BB) { in ComputeValueKnownInPredecessorsImpl()
837 LVI->getPredicateOnEdge(Pred, CmpLHS, in ComputeValueKnownInPredecessorsImpl()
858 match(CmpLHS, m_Add(m_Value(AddLHS), m_ConstantInt(AddConst)))) { in ComputeValueKnownInPredecessorsImpl()
870 AddLHS, P, BB, CxtI ? CxtI : cast<Instruction>(CmpLHS)); in ComputeValueKnownInPredecessorsImpl()
DGuardWidening.cpp601 const Value *CmpLHS = IC->getOperand(0), *CmpRHS = IC->getOperand(1); in parseRangeChecks() local
603 std::swap(CmpLHS, CmpRHS); in parseRangeChecks()
608 CmpLHS, cast<ConstantInt>(ConstantInt::getNullValue(CmpRHS->getType())), in parseRangeChecks()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DSwitchLoweringUtils.h122 const Value *CmpLHS, *CmpMHS, *CmpRHS; member
144 : CC(cc), CmpLHS(cmplhs), CmpMHS(cmpmiddle), CmpRHS(cmprhs), in CC()
155 : PredInfo({pred, nocmp}), CmpLHS(cmplhs), CmpMHS(cmpmiddle),
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86FastISel.cpp1648 const Value *CmpLHS = CI->getOperand(0); in X86SelectBranch() local
1658 CmpRHS = CmpLHS; in X86SelectBranch()
1689 std::swap(CmpLHS, CmpRHS); in X86SelectBranch()
1692 if (!X86FastEmitCompare(CmpLHS, CmpRHS, VT, CI->getDebugLoc())) in X86SelectBranch()
2058 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitCMoveSelect() local
2061 std::swap(CmpLHS, CmpRHS); in X86FastEmitCMoveSelect()
2063 EVT CmpVT = TLI.getValueType(DL, CmpLHS->getType()); in X86FastEmitCMoveSelect()
2065 if (!X86FastEmitCompare(CmpLHS, CmpRHS, CmpVT, CI->getDebugLoc())) in X86FastEmitCMoveSelect()
2160 const Value *CmpLHS = CI->getOperand(0); in X86FastEmitSSESelect() local
2170 CmpRHS = CmpLHS; in X86FastEmitSSESelect()
[all …]
DX86ISelLowering.cpp38362 SDValue CmpLHS = Cmp.getOperand(0); in combineSetCCAtomicArith() local
38365 if (!CmpLHS.hasOneUse()) in combineSetCCAtomicArith()
38368 unsigned Opc = CmpLHS.getOpcode(); in combineSetCCAtomicArith()
38372 SDValue OpRHS = CmpLHS.getOperand(2); in combineSetCCAtomicArith()
38392 auto *AN = cast<AtomicSDNode>(CmpLHS.getNode()); in combineSetCCAtomicArith()
38394 ISD::ATOMIC_LOAD_SUB, SDLoc(CmpLHS), CmpLHS.getValueType(), in combineSetCCAtomicArith()
38395 /*Chain*/ CmpLHS.getOperand(0), /*LHS*/ CmpLHS.getOperand(1), in combineSetCCAtomicArith()
38399 DAG.ReplaceAllUsesOfValueWith(CmpLHS.getValue(0), in combineSetCCAtomicArith()
38400 DAG.getUNDEF(CmpLHS.getValueType())); in combineSetCCAtomicArith()
38401 DAG.ReplaceAllUsesOfValueWith(CmpLHS.getValue(1), LockOp.getValue(1)); in combineSetCCAtomicArith()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp570 Register CondLHS = getOrCreateVReg(*CB.CmpLHS); in emitSwitchCase()
597 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); in emitSwitchCase()
601 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) { in emitSwitchCase()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp3466 SDValue CmpLHS = Cond.getOperand(0); in performCtlz_CttzCombine() local
3475 RHS.getOperand(0) == CmpLHS && in performCtlz_CttzCombine()
3477 return getFFBX_U32(DAG, CmpLHS, SL, Opc); in performCtlz_CttzCombine()
3484 LHS.getOperand(0) == CmpLHS && in performCtlz_CttzCombine()
3486 return getFFBX_U32(DAG, CmpLHS, SL, Opc); in performCtlz_CttzCombine()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2231 if ((Cases[0].CmpLHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
2233 (Cases[0].CmpRHS == Cases[1].CmpLHS && in ShouldEmitAsBranches()
2234 Cases[0].CmpLHS == Cases[1].CmpRHS)) { in ShouldEmitAsBranches()
2311 ExportFromCurrentBlock(SL->SwitchCases[i].CmpLHS); in visitBr()
2344 SDValue CondLHS = getValue(CB.CmpLHS); in visitSwitchCase()
2359 EVT MemVT = TLI.getMemValueType(DAG.getDataLayout(), CB.CmpLHS->getType()); in visitSwitchCase()
2387 const APInt& Low = cast<ConstantInt>(CB.CmpLHS)->getValue(); in visitSwitchCase()
2393 if (cast<ConstantInt>(CB.CmpLHS)->isMinValue(true)) { in visitSwitchCase()
DDAGCombiner.cpp20049 SDValue CmpLHS; in SimplifySelectOps() local
20054 CmpLHS = TheSelect->getOperand(0); in SimplifySelectOps()
20061 CmpLHS = Cmp.getOperand(0); in SimplifySelectOps()
20066 Sqrt.getOperand(0) == CmpLHS && (CC == ISD::SETOLT || in SimplifySelectOps()