Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dstrncmp-1.ll78 ; CHECK-NEXT: [[LHSC:%.*]] = load i8, i8* [[STR1:%.*]], align 1
79 ; CHECK-NEXT: [[LHSV:%.*]] = zext i8 [[LHSC]] to i32
H A Dbcmp-1.ll38 ; CHECK-NEXT: [[LHSC:%.*]] = load i8, i8* [[MEM1:%.*]], align 1
39 ; CHECK-NEXT: [[LHSV:%.*]] = zext i8 [[LHSC]] to i32
H A Dmemcmp-1.ll38 ; CHECK-NEXT: [[LHSC:%.*]] = load i8, i8* %mem1, align 1
39 ; CHECK-NEXT: [[LHSV:%.*]] = zext i8 [[LHSC]] to i32
H A Dand-or-icmps.ll76 ; if LHSC and RHSC differ only by one bit:
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolution.cpp2486 LHSC = cast<SCEVConstant>(Ops[0]); in getAddExpr()
2490 if (LHSC->getValue()->isZero()) { in getAddExpr()
3081 LHSC = cast<SCEVConstant>(Ops[0]); in getMulExpr()
3085 if (LHSC->getValue()->isZero()) in getMulExpr()
3086 return LHSC; in getMulExpr()
3089 if (LHSC->getValue()->isOne()) { in getMulExpr()
3365 if (LHSC->getValue()->isZero()) in getUDivExpr()
3809 LHSC = cast<SCEVConstant>(Ops[0]); in getMinMaxExpr()
3812 bool IsMinV = LHSC->getValue()->isMinValue(IsSigned); in getMinMaxExpr()
3822 return LHSC; in getMinMaxExpr()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp2530 const APInt *LHSC = nullptr, *RHSC = nullptr; in foldAndOrOfICmps() local
2531 match(LHS1, m_APInt(LHSC)); in foldAndOrOfICmps()
2622 if (!LHSC || !RHSC) in foldAndOrOfICmps()
2639 BigC = LHSC; in foldAndOrOfICmps()
2642 SmallC = LHSC; in foldAndOrOfICmps()
2667 if (isSignBitCheck(PredL, *LHSC, TrueIfSignedL) && in foldAndOrOfICmps()
H A DInstCombineCompares.cpp5623 const APInt *LHSC; in foldICmpUsingKnownBits() local
5624 if (!match(Op0, m_And(m_Value(LHS), m_APInt(LHSC))) || in foldICmpUsingKnownBits()
5625 *LHSC != Op0KnownZeroInverted) in foldICmpUsingKnownBits()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DIROutliner.cpp173 const ConstantInt *LHSC = dyn_cast<ConstantInt>(LHS); in getSortedConstantKeys() local
176 assert(LHSC && "Not a constant integer in return value?"); in getSortedConstantKeys()
178 return LHSC->getLimitedValue() < RHSC->getLimitedValue(); in getSortedConstantKeys()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1362 if (auto *LHSC = dyn_cast<Constant>(LHS)) { in optimizeMemCmpConstantSize() local
1363 LHSC = ConstantExpr::getBitCast(LHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
1364 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmpConstantSize()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTContext.cpp7115 const Type *LHSC = getCanonicalType(LHS).getTypePtr(); in getIntegerTypeOrder() local
7119 if (const auto *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
7120 LHSC = getIntegerTypeForEnum(ET); in getIntegerTypeOrder()
7124 if (LHSC == RHSC) return 0; in getIntegerTypeOrder()
7126 bool LHSUnsigned = LHSC->isUnsignedIntegerType(); in getIntegerTypeOrder()
7129 unsigned LHSRank = getIntegerRank(LHSC); in getIntegerTypeOrder()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp9018 const APInt &LHSC = LHS->getAPIntValue(); in visitSHL() local
9020 return LHSC.ult(OpSizeInBits) && RHSC.ult(OpSizeInBits) && in visitSHL()
9021 LHSC.getZExtValue() <= RHSC.getZExtValue(); in visitSHL()
9542 const APInt &LHSC = LHS->getAPIntValue(); in visitSRL() local
9544 return LHSC.ult(OpSizeInBits) && RHSC.ult(OpSizeInBits) && in visitSRL()
9545 LHSC.getZExtValue() <= RHSC.getZExtValue(); in visitSRL()
H A DSelectionDAGBuilder.cpp5327 if (ConstantFPSDNode *LHSC = dyn_cast<ConstantFPSDNode>(LHS)) { in expandPow() local
5329 IsExp10 = LHSC->isExactlyValue(Ten); in expandPow()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp53227 auto *LHSC = dyn_cast<ConstantSDNode>(LHS); in combineADC() local
53231 if (LHSC && !RHSC) in combineADC()
53238 if (LHSC && RHSC && LHSC->isZero() && RHSC->isZero() && in combineADC()
53256 if (LHSC && RHSC && !LHSC->isZero() && !N->hasAnyUseOfValue(1)) { in combineADC()
53258 APInt Sum = LHSC->getAPIntValue() + RHSC->getAPIntValue(); in combineADC()