Searched refs:CLHS (Results 1 – 7 of 7) sorted by relevance
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 96 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local 97 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare() 99 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare() 531 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyAddInst() local 533 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAddInst() 534 return ConstantFoldInstOperands(Instruction::Add, CLHS->getType(), Ops, in SimplifyAddInst() 663 if (Constant *CLHS = dyn_cast<Constant>(Op0)) in SimplifySubInst() local 665 Constant *Ops[] = { CLHS, CRHS }; in SimplifySubInst() 666 return ConstantFoldInstOperands(Instruction::Sub, CLHS->getType(), in SimplifySubInst() 790 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyFAddInst() local [all …]
|
D | InlineCost.cpp | 553 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local 555 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst() 574 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local 576 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst() 620 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local 622 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
|
D | ValueTracking.cpp | 234 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(Op0)) { in computeKnownBitsAddSub() local 238 if (!CLHS->getValue().isNegative()) { in computeKnownBitsAddSub() 240 unsigned NLZ = (CLHS->getValue()+1).countLeadingZeros(); in computeKnownBitsAddSub() 249 unsigned NLZ2 = CLHS->getValue().countLeadingZeros(); in computeKnownBitsAddSub() 2293 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBits() local 2294 if (CLHS->isNullValue()) { in ComputeNumSignBits() 4154 const APInt *CLHS, *CRHS; in isTruePredicate() local 4155 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate() 4156 return CLHS->ule(*CRHS); in isTruePredicate()
|
D | ScalarEvolutionExpander.cpp | 176 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local 178 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop() 503 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local 506 CLHS, CRHS); in expandAddToGEP()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnrollPass.cpp | 482 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local 484 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 1417 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in LowerFastFDIV() local 1419 CLHS->isExactlyValue(1.0)) { in LowerFastFDIV() 1867 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local 1869 if (!CLHS || !CRHS) in performOrCombine() 1875 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 2361 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) { in computeKnownBits() local 2365 if (CLHS->getAPIntValue().isNonNegative()) { in computeKnownBits() 2366 unsigned NLZ = (CLHS->getAPIntValue()+1).countLeadingZeros(); in computeKnownBits() 2375 unsigned NLZ2 = CLHS->getAPIntValue().countLeadingZeros(); in computeKnownBits() 2680 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) in ComputeNumSignBits() local 2681 if (CLHS->isNullValue()) { in ComputeNumSignBits()
|