Searched refs:CstVal (Results 1 – 4 of 4) sorted by relevance
908 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(Ops.back().Op)) in OptimizeExpression() local912 if (CstVal->isZero()) // X & 0 -> 0 in OptimizeExpression()913 return CstVal; in OptimizeExpression()914 if (CstVal->isAllOnesValue()) // X & -1 -> X in OptimizeExpression()918 if (CstVal->isZero()) { // X * 0 -> 0 in OptimizeExpression()920 return CstVal; in OptimizeExpression()923 if (cast<ConstantInt>(CstVal)->isOne()) in OptimizeExpression()927 if (CstVal->isAllOnesValue()) // X | -1 -> -1 in OptimizeExpression()928 return CstVal; in OptimizeExpression()932 if (CstVal->isZero()) // X [|^+] 0 -> X in OptimizeExpression()
1688 Optional<int64_t> CstVal = getConstantVRegVal(MI.getOperand(0).getReg(), MRI); in renderTruncImm() local1689 assert(CstVal && "Expected constant value"); in renderTruncImm()1690 MIB.addImm(CstVal.getValue()); in renderTruncImm()
3066 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() local3068 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()4959 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx)) in getConstantVector() local4960 ExtractIdx = CstVal->getSExtValue(); in getConstantVector()
3664 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() local3666 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()6005 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx)) in getConstantVector() local6006 ExtractIdx = CstVal->getSExtValue(); in getConstantVector()