Searched refs:LHSC (Results 1 – 13 of 13) sorted by relevance
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | strncmp-1.ll | 78 ; CHECK-NEXT: [[LHSC:%.*]] = load i8, i8* [[STR1:%.*]], align 1 79 ; CHECK-NEXT: [[LHSV:%.*]] = zext i8 [[LHSC]] to i32
|
| H A D | bcmp-1.ll | 38 ; CHECK-NEXT: [[LHSC:%.*]] = load i8, i8* [[MEM1:%.*]], align 1 39 ; CHECK-NEXT: [[LHSV:%.*]] = zext i8 [[LHSC]] to i32
|
| H A D | memcmp-1.ll | 38 ; CHECK-NEXT: [[LHSC:%.*]] = load i8, i8* %mem1, align 1 39 ; CHECK-NEXT: [[LHSV:%.*]] = zext i8 [[LHSC]] to i32
|
| H A D | and-or-icmps.ll | 76 ; if LHSC and RHSC differ only by one bit:
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 2486 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 D | InstCombineAndOrXor.cpp | 2530 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 D | InstCombineCompares.cpp | 5623 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 D | IROutliner.cpp | 173 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 D | SimplifyLibCalls.cpp | 1362 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 D | ASTContext.cpp | 7115 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 D | DAGCombiner.cpp | 9018 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 D | SelectionDAGBuilder.cpp | 5327 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 D | X86ISelLowering.cpp | 53227 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()
|