Home
last modified time | relevance | path

Searched refs:AndRHS (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DGuardWidening.cpp586 Value *AndLHS, *AndRHS; in parseRangeChecks() local
587 if (match(CheckCond, m_And(m_Value(AndLHS), m_Value(AndRHS)))) in parseRangeChecks()
589 parseRangeChecks(AndRHS, Checks); in parseRangeChecks()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp316 ConstantInt *AndRHS, *XorRHS; in SimplifyDemandedUseBits() local
319 match(LHSInst->getOperand(1), m_ConstantInt(AndRHS)) && in SimplifyDemandedUseBits()
323 Constant *AndC = ConstantInt::get(VTy, NewMask & AndRHS->getValue()); in SimplifyDemandedUseBits()
H A DInstCombineSelect.cpp141 const APInt *AndRHS; in foldSelectICmpAnd() local
142 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd()
145 AndMask = *AndRHS; in foldSelectICmpAnd()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp999 if (ConstantInt *AndRHS = GetConstantInt(LHS->getOperand(1))) in calcZeroHeuristics() local
1000 if (AndRHS->getValue().isPowerOf2()) in calcZeroHeuristics()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp3447 SDValue AndRHS = LHS->getOperand(1); in tryBFE() local
3451 std::swap(AndLHS, AndRHS); in tryBFE()
3454 ConstantSDNode *MaskCnst = dyn_cast<ConstantSDNode>(AndRHS); in tryBFE()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp2288 const Value *AndRHS = AI->getOperand(1); in emitCompareAndBranch() local
2292 std::swap(AndLHS, AndRHS); in emitCompareAndBranch()
2294 if (const auto *C = dyn_cast<ConstantInt>(AndRHS)) in emitCompareAndBranch()
/llvm-project-15.0.7/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp1471 } else if (auto *AndRHS = dyn_cast<ConstantSDNode>(Op1)) { in LowerAndToBTST() local
1472 uint64_t AndRHSVal = AndRHS->getZExtValue(); in LowerAndToBTST()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp4754 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC() local
4759 unsigned ShCt = AndRHS->getAPIntValue().logBase2(); in SimplifySetCC()
4760 if (AndRHS->getAPIntValue().isPowerOf2() && in SimplifySetCC()
4766 } else if (Cond == ISD::SETEQ && C1 == AndRHS->getAPIntValue()) { in SimplifySetCC()
4786 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) { in SimplifySetCC() local
4787 const APInt &AndRHSC = AndRHS->getAPIntValue(); in SimplifySetCC()
H A DSelectionDAG.cpp9143 if (ConstantSDNode *AndRHS = dyn_cast<ConstantSDNode>(N3.getOperand(1))) { in getNode()
9147 if ((AndRHS->getValue() & (NumBits-1)) == NumBits-1) in getNode()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp4660 Register AndRHS = MI.getOperand(2).getReg(); in matchNarrowBinopFeedingAnd() local
4691 auto Cst = getIConstantVRegValWithLookThrough(AndRHS, MRI); in matchNarrowBinopFeedingAnd()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp24031 ConstantSDNode *AndRHS = cast<ConstantSDNode>(Op1); in LowerAndToBT() local
24032 uint64_t AndRHSVal = AndRHS->getZExtValue(); in LowerAndToBT()