Home
last modified time | relevance | path

Searched refs:RHSCst (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1031 auto RHSCst = getIConstantVRegVal(RHS, MRI); in ConstantFoldICmp() local
1032 if (!LHSCst || !RHSCst) in ConstantFoldICmp()
1037 return APInt(/*numBits=*/1, LHSCst->eq(*RHSCst)); in ConstantFoldICmp()
1039 return APInt(/*numBits=*/1, LHSCst->ne(*RHSCst)); in ConstantFoldICmp()
1041 return APInt(/*numBits=*/1, LHSCst->ugt(*RHSCst)); in ConstantFoldICmp()
1043 return APInt(/*numBits=*/1, LHSCst->uge(*RHSCst)); in ConstantFoldICmp()
1045 return APInt(/*numBits=*/1, LHSCst->ult(*RHSCst)); in ConstantFoldICmp()
1047 return APInt(/*numBits=*/1, LHSCst->ule(*RHSCst)); in ConstantFoldICmp()
1049 return APInt(/*numBits=*/1, LHSCst->sgt(*RHSCst)); in ConstantFoldICmp()
1051 return APInt(/*numBits=*/1, LHSCst->sge(*RHSCst)); in ConstantFoldICmp()
[all …]
H A DLoadStoreOpt.cpp94 auto RHSCst = getIConstantVRegValWithLookThrough(PtrAddRHS, MRI); in getPointerInfo() local
95 if (RHSCst) in getPointerInfo()
96 Info.setOffset(RHSCst->Value.getSExtValue()); in getPointerInfo()
H A DCombinerHelper.cpp2482 if (auto RHSCst = getIConstantVRegVal(RHS, MRI)) { in matchCombineConstPtrAddToI2P() local
2488 NewCst += RHSCst->sextOrTrunc(DstTy.getSizeInBits()); in matchCombineConstPtrAddToI2P()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp882 auto RHSCst = getIConstantVRegValWithLookThrough(RHS, MRI); in trySwapICmpOperands() local
883 if (RHSCst && isLegalArithImmed(RHSCst->Value.getSExtValue())) in trySwapICmpOperands()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp3604 if (const SCEVConstant *RHSCst = dyn_cast<SCEVConstant>(RHS)) { in getUDivExactExpr() local
3608 if (LHSCst == RHSCst) { in getUDivExactExpr()
3616 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()
3620 RHSCst = in getUDivExactExpr()
3621 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()
3626 RHS = RHSCst; in getUDivExactExpr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp397 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS)) in matchBinaryPredicate() local
398 return Match(LHSCst, RHSCst); in matchBinaryPredicate()
413 auto *RHSCst = dyn_cast<ConstantSDNode>(RHSOp); in matchBinaryPredicate() local
414 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate()
419 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()