Home
last modified time | relevance | path

Searched refs:NewCst (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DCombinerHelper.h375 bool matchCombineConstPtrAddToI2P(MachineInstr &MI, APInt &NewCst);
376 void applyCombineConstPtrAddToI2P(MachineInstr &MI, APInt &NewCst);
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp192 if (Constant *NewCst = ConstantExpr::getExactLogBase2(C1)) { in visitMul() local
193 BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); in visitMul()
199 if (match(NewCst, m_APInt(V)) && *V != V->getBitWidth() - 1) in visitMul()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp2081 APInt &NewCst) { in matchCombineConstPtrAddToI2P() argument
2092 NewCst = Cst.zextOrTrunc(DstTy.getSizeInBits()); in matchCombineConstPtrAddToI2P()
2093 NewCst += RHSCst->sextOrTrunc(DstTy.getSizeInBits()); in matchCombineConstPtrAddToI2P()
2102 APInt &NewCst) { in applyCombineConstPtrAddToI2P() argument
2107 Builder.buildConstant(Dst, NewCst); in applyCombineConstPtrAddToI2P()
4587 auto NewCst = B.buildConstant(MRI.getType(Src2Reg), *C1 + *C2); in matchReassocFoldConstantsInSubTree() local
4590 MI.getOperand(2).setReg(NewCst.getReg(0)); in matchReassocFoldConstantsInSubTree()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp4473 Constant *NewCst = ConstantInt::getFalse(BB->getContext()); in tryToSimplifyUncondBranchWithICmpInIt() local
4476 std::swap(DefaultCst, NewCst); in tryToSimplifyUncondBranchWithICmpInIt()
4506 PHIUse->addIncoming(NewCst, NewBB); in tryToSimplifyUncondBranchWithICmpInIt()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp4175 SDValue NewCst = CurDAG->getConstant(ShiftedVal, dl, NVT); in tryShrinkShlLogicImm() local
4176 insertDAGNode(*CurDAG, SDValue(N, 0), NewCst); in tryShrinkShlLogicImm()
4177 SDValue NewBinOp = CurDAG->getNode(Opcode, dl, NVT, X, NewCst); in tryShrinkShlLogicImm()