Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp875 ConstantInt *LHSC = dyn_cast<ConstantInt>(LHS->getOperand(1)); in foldAndOrOfICmpsOfAndWithPow2() local
877 if (!LHSC || !RHSC || !LHSC->isZero() || !RHSC->isZero()) in foldAndOrOfICmpsOfAndWithPow2()
942 ConstantInt *LHSC = dyn_cast<ConstantInt>(LHS->getOperand(1)); in foldAndOfICmps() local
944 if (!LHSC || !RHSC) in foldAndOfICmps()
947 if (LHSC == RHSC && PredL == PredR) { in foldAndOfICmps()
951 if ((PredL == ICmpInst::ICMP_ULT && LHSC->getValue().isPowerOf2()) || in foldAndOfICmps()
952 (PredL == ICmpInst::ICMP_EQ && LHSC->isZero())) { in foldAndOfICmps()
954 return Builder.CreateICmp(PredL, NewOr, LHSC); in foldAndOfICmps()
971 BigC = LHSC; in foldAndOfICmps()
974 SmallC = LHSC; in foldAndOfICmps()
[all …]
DInstCombineCompares.cpp4317 const APInt *LHSC; in foldICmpUsingKnownBits() local
4318 if (!match(Op0, m_And(m_Value(LHS), m_APInt(LHSC))) || in foldICmpUsingKnownBits()
4319 *LHSC != Op0KnownZeroInverted) in foldICmpUsingKnownBits()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dmemcmp-1.ll37 ; CHECK-NEXT: [[LHSC:%.*]] = load i8, i8* %mem1, align 1
38 ; CHECK-NEXT: [[LHSV:%.*]] = zext i8 [[LHSC]] to i32
Dand-or-icmps.ll38 ; if LHSC and RHSC differ only by one bit:
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2127 ConstantInt *LHSC = dyn_cast<ConstantInt>(LHSI->getOperand(0)); in visitICmpInstWithInstAndIntCst() local
2128 if (!LHSC) break; in visitICmpInstWithInstAndIntCst()
2129 const APInt &LHSV = LHSC->getValue(); in visitICmpInstWithInstAndIntCst()
2138 LHSC); in visitICmpInstWithInstAndIntCst()
2146 Builder->CreateOr(LHSI->getOperand(1), RHSV), LHSC); in visitICmpInstWithInstAndIntCst()
2153 ConstantInt *LHSC = dyn_cast<ConstantInt>(LHSI->getOperand(1)); in visitICmpInstWithInstAndIntCst() local
2154 if (!LHSC) break; in visitICmpInstWithInstAndIntCst()
2155 const APInt &LHSV = LHSC->getValue(); in visitICmpInstWithInstAndIntCst()
2185 ConstantExpr::getNeg(LHSC)); in visitICmpInstWithInstAndIntCst()
2194 ConstantExpr::getNeg(LHSC)); in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineAndOrXor.cpp1128 if (ConstantFP *LHSC = dyn_cast<ConstantFP>(LHS->getOperand(1))) in FoldAndOfFCmps() local
1132 if (LHSC->getValueAPF().isNaN() || RHSC->getValueAPF().isNaN()) in FoldAndOfFCmps()
2037 if (ConstantFP *LHSC = dyn_cast<ConstantFP>(LHS->getOperand(1))) in FoldOrOfFCmps() local
2041 if (LHSC->getValueAPF().isNaN() || RHSC->getValueAPF().isNaN()) in FoldOrOfFCmps()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1334 ConstantInt *LHSC = dyn_cast<ConstantInt>(LHSI->getOperand(1)); in visitICmpInstWithInstAndIntCst() local
1335 if (!LHSC) break; in visitICmpInstWithInstAndIntCst()
1336 const APInt &LHSV = LHSC->getValue(); in visitICmpInstWithInstAndIntCst()
1960 ConstantInt *LHSC = 0; in visitICmpInst() local
1961 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
1962 LHSC->getValue() != Op0KnownZeroInverted) in visitICmpInst()
1997 ConstantInt *LHSC = 0; in visitICmpInst() local
1998 if (!match(Op0, m_And(m_Value(LHS), m_ConstantInt(LHSC))) || in visitICmpInst()
1999 LHSC->getValue() != Op0KnownZeroInverted) in visitICmpInst()
DInstCombineAndOrXor.cpp966 if (ConstantFP *LHSC = dyn_cast<ConstantFP>(LHS->getOperand(1))) in FoldAndOfFCmps() local
970 if (LHSC->getValueAPF().isNaN() || RHSC->getValueAPF().isNaN()) in FoldAndOfFCmps()
1671 if (ConstantFP *LHSC = dyn_cast<ConstantFP>(LHS->getOperand(1))) in FoldOrOfFCmps() local
1675 if (LHSC->getValueAPF().isNaN() || RHSC->getValueAPF().isNaN()) in FoldOrOfFCmps()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolution.cpp1479 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getAddExpr() local
1484 Ops[0] = getConstant(LHSC->getValue()->getValue() + in getAddExpr()
1488 LHSC = cast<SCEVConstant>(Ops[0]); in getAddExpr()
1492 if (LHSC->getValue()->isZero()) { in getAddExpr()
1882 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getMulExpr() local
1889 return getAddExpr(getMulExpr(LHSC, Add->getOperand(0)), in getMulExpr()
1890 getMulExpr(LHSC, Add->getOperand(1))); in getMulExpr()
1896 LHSC->getValue()->getValue() * in getMulExpr()
1901 LHSC = cast<SCEVConstant>(Ops[0]); in getMulExpr()
2203 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(LHS)) { in getUDivExpr() local
[all …]
/external/llvm/lib/Analysis/
DScalarEvolution.cpp2042 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getAddExpr() local
2047 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr()
2050 LHSC = cast<SCEVConstant>(Ops[0]); in getAddExpr()
2054 if (LHSC->getValue()->isZero()) { in getAddExpr()
2453 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getMulExpr() local
2462 return getAddExpr(getMulExpr(LHSC, Add->getOperand(0)), in getMulExpr()
2463 getMulExpr(LHSC, Add->getOperand(1))); in getMulExpr()
2469 ConstantInt::get(getContext(), LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr()
2473 LHSC = cast<SCEVConstant>(Ops[0]); in getMulExpr()
2769 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(LHS)) { in getUDivExpr() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DScalarEvolution.cpp2389 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getAddExpr() local
2394 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr()
2397 LHSC = cast<SCEVConstant>(Ops[0]); in getAddExpr()
2401 if (LHSC->getValue()->isZero()) { in getAddExpr()
2871 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getMulExpr() local
2883 return getAddExpr(getMulExpr(LHSC, Add->getOperand(0), in getMulExpr()
2885 getMulExpr(LHSC, Add->getOperand(1), in getMulExpr()
2893 ConstantInt::get(getContext(), LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr()
2897 LHSC = cast<SCEVConstant>(Ops[0]); in getMulExpr()
3234 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(LHS)) { in getUDivExpr() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp798 if (auto *LHSC = dyn_cast<Constant>(LHS)) { in optimizeMemCmp() local
799 LHSC = ConstantExpr::getBitCast(LHSC, IntType->getPointerTo()); in optimizeMemCmp()
800 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmp()
/external/clang/lib/AST/
DASTContext.cpp4843 const Type *LHSC = getCanonicalType(LHS).getTypePtr(); in getIntegerTypeOrder() local
4847 if (const EnumType *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
4848 LHSC = getIntegerTypeForEnum(ET); in getIntegerTypeOrder()
4852 if (LHSC == RHSC) return 0; in getIntegerTypeOrder()
4854 bool LHSUnsigned = LHSC->isUnsignedIntegerType(); in getIntegerTypeOrder()
4857 unsigned LHSRank = getIntegerRank(LHSC); in getIntegerTypeOrder()
/external/swiftshader/third_party/LLVM/lib/Target/ARM/
DARMISelDAGToDAG.cpp1075 unsigned LHSC = LHS ? LHS->getZExtValue() : 0; in SelectThumbAddrModeImm5S() local
1079 if (LHSC != 0 || RHSC != 0) return false; in SelectThumbAddrModeImm5S()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp4575 if (ConstantFPSDNode *LHSC = dyn_cast<ConstantFPSDNode>(LHS)) { in expandPow() local
4577 IsExp10 = LHSC->isExactlyValue(Ten); in expandPow()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp4809 if (ConstantFPSDNode *LHSC = dyn_cast<ConstantFPSDNode>(LHS)) { in expandPow() local
4811 IsExp10 = LHSC->isExactlyValue(Ten); in expandPow()