Searched refs:MulAmt (Results 1 – 4 of 4) sorted by relevance
881 int64_t MulAmt = C->getSExtValue(); in LowerMUL() local895 int64_t E = std::abs(MulAmt); in LowerMUL()896 int S = (MulAmt < 0 ? -1 : 1); in LowerMUL()919 if (std::abs(MulAmt) % 2 == 1) in LowerMUL()
6635 uint64_t MulAmt = C->getZExtValue(); in PerformMULCombine() local6636 unsigned ShiftAmt = CountTrailingZeros_64(MulAmt); in PerformMULCombine()6642 MulAmt >>= ShiftAmt; in PerformMULCombine()6643 if (isPowerOf2_32(MulAmt - 1)) { in PerformMULCombine()6647 V, DAG.getConstant(Log2_32(MulAmt-1), in PerformMULCombine()6649 } else if (isPowerOf2_32(MulAmt + 1)) { in PerformMULCombine()6653 V, DAG.getConstant(Log2_32(MulAmt+1), in PerformMULCombine()
13017 uint64_t MulAmt = C->getZExtValue(); in PerformMulCombine() local13018 if (isPowerOf2_64(MulAmt) || MulAmt == 3 || MulAmt == 5 || MulAmt == 9) in PerformMulCombine()13023 if ((MulAmt % 9) == 0) { in PerformMulCombine()13025 MulAmt2 = MulAmt / 9; in PerformMulCombine()13026 } else if ((MulAmt % 5) == 0) { in PerformMulCombine()13028 MulAmt2 = MulAmt / 5; in PerformMulCombine()13029 } else if ((MulAmt % 3) == 0) { in PerformMulCombine()13031 MulAmt2 = MulAmt / 3; in PerformMulCombine()
9158 int64_t MulAmt = C->getSExtValue(); in PerformMULCombine() local9159 unsigned ShiftAmt = countTrailingZeros<uint64_t>(MulAmt); in PerformMULCombine()9166 MulAmt >>= ShiftAmt; in PerformMULCombine()9168 if (MulAmt >= 0) { in PerformMULCombine()9169 if (isPowerOf2_32(MulAmt - 1)) { in PerformMULCombine()9175 DAG.getConstant(Log2_32(MulAmt - 1), DL, in PerformMULCombine()9177 } else if (isPowerOf2_32(MulAmt + 1)) { in PerformMULCombine()9182 DAG.getConstant(Log2_32(MulAmt + 1), DL, in PerformMULCombine()9188 uint64_t MulAmtAbs = -MulAmt; in PerformMULCombine()