Home
last modified time | relevance | path

Searched refs:LHSC (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp1471 const APFloat *LHSC, *RHSC; in foldLogicOfFCmps() local
1474 match(LHS1, m_APFloatAllowPoison(LHSC)) && in foldLogicOfFCmps()
1476 LHSC->bitwiseIsEqual(neg(*RHSC))) { in foldLogicOfFCmps()
1489 std::swap(LHSC, RHSC); in foldLogicOfFCmps()
1499 ConstantFP::get(LHS0->getType(), *LHSC)); in foldLogicOfFCmps()
3291 const APInt *LHSC = nullptr, *RHSC = nullptr; in foldAndOrOfICmps() local
3292 match(LHS1, m_APInt(LHSC)); in foldAndOrOfICmps()
3402 if (!LHSC || !RHSC) in foldAndOrOfICmps()
3419 BigC = LHSC; in foldAndOrOfICmps()
3422 SmallC = LHSC; in foldAndOrOfICmps()
[all …]
H A DInstCombineCompares.cpp6584 const APInt *LHSC; in foldICmpUsingKnownBits() local
6585 if (!match(Op0, m_And(m_Value(LHS), m_APInt(LHSC))) || in foldICmpUsingKnownBits()
6586 *LHSC != Op0KnownZeroInverted) in foldICmpUsingKnownBits()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp2534 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getAddExpr() local
2539 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr()
2542 LHSC = cast<SCEVConstant>(Ops[0]); in getAddExpr()
2546 if (LHSC->getValue()->isZero()) { in getAddExpr()
3127 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getMulExpr() local
3132 Ops[0] = getConstant(LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr()
3135 LHSC = cast<SCEVConstant>(Ops[0]); in getMulExpr()
3139 if (LHSC->getValue()->isZero()) in getMulExpr()
3140 return LHSC; in getMulExpr()
3143 if (LHSC->getValue()->isOne()) { in getMulExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DIROutliner.cpp179 const ConstantInt *LHSC = cast<ConstantInt>(LHS); in getSortedConstantKeys() local
182 return LHSC->getLimitedValue() < RHSC->getLimitedValue(); in getSortedConstantKeys()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp7683 const Type *LHSC = getCanonicalType(LHS).getTypePtr(); in getIntegerTypeOrder() local
7687 if (const auto *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
7688 LHSC = getIntegerTypeForEnum(ET); in getIntegerTypeOrder()
7692 if (LHSC == RHSC) return 0; in getIntegerTypeOrder()
7694 bool LHSUnsigned = LHSC->isUnsignedIntegerType(); in getIntegerTypeOrder()
7697 unsigned LHSRank = getIntegerRank(LHSC); in getIntegerTypeOrder()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1559 if (auto *LHSC = dyn_cast<Constant>(LHS)) in optimizeMemCmpConstantSize() local
1560 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmpConstantSize()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp10013 const APInt &LHSC = LHS->getAPIntValue(); in visitSHL() local
10015 return LHSC.ult(OpSizeInBits) && RHSC.ult(OpSizeInBits) && in visitSHL()
10016 LHSC.getZExtValue() <= RHSC.getZExtValue(); in visitSHL()
10616 const APInt &LHSC = LHS->getAPIntValue(); in visitSRL() local
10618 return LHSC.ult(OpSizeInBits) && RHSC.ult(OpSizeInBits) && in visitSRL()
10619 LHSC.getZExtValue() <= RHSC.getZExtValue(); in visitSRL()
H A DSelectionDAGBuilder.cpp5810 if (ConstantFPSDNode *LHSC = dyn_cast<ConstantFPSDNode>(LHS)) { in expandPow() local
5812 IsExp10 = LHSC->isExactlyValue(Ten); in expandPow()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp55365 auto *LHSC = dyn_cast<ConstantSDNode>(LHS); in combineADC() local
55369 if (LHSC && !RHSC) in combineADC()
55376 if (LHSC && RHSC && LHSC->isZero() && RHSC->isZero() && in combineADC()
55394 if (LHSC && RHSC && !LHSC->isZero() && !N->hasAnyUseOfValue(1)) { in combineADC()
55396 APInt Sum = LHSC->getAPIntValue() + RHSC->getAPIntValue(); in combineADC()