Home
last modified time | relevance | path

Searched refs:MulAmt (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp8743 int64_t MulAmt = C->getSExtValue(); in PerformMULCombine() local
8744 unsigned ShiftAmt = countTrailingZeros<uint64_t>(MulAmt); in PerformMULCombine()
8751 MulAmt >>= ShiftAmt; in PerformMULCombine()
8753 if (MulAmt >= 0) { in PerformMULCombine()
8754 if (isPowerOf2_32(MulAmt - 1)) { in PerformMULCombine()
8760 DAG.getConstant(Log2_32(MulAmt - 1), DL, in PerformMULCombine()
8762 } else if (isPowerOf2_32(MulAmt + 1)) { in PerformMULCombine()
8767 DAG.getConstant(Log2_32(MulAmt + 1), DL, in PerformMULCombine()
8773 uint64_t MulAmtAbs = -MulAmt; in PerformMULCombine()
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp24879 uint64_t MulAmt = C->getZExtValue(); in PerformMulCombine() local
24880 if (isPowerOf2_64(MulAmt) || MulAmt == 3 || MulAmt == 5 || MulAmt == 9) in PerformMulCombine()
24885 if ((MulAmt % 9) == 0) { in PerformMulCombine()
24887 MulAmt2 = MulAmt / 9; in PerformMulCombine()
24888 } else if ((MulAmt % 5) == 0) { in PerformMulCombine()
24890 MulAmt2 = MulAmt / 5; in PerformMulCombine()
24891 } else if ((MulAmt % 3) == 0) { in PerformMulCombine()
24893 MulAmt2 = MulAmt / 3; in PerformMulCombine()
24924 assert(MulAmt != 0 && MulAmt != (VT == MVT::i64 ? UINT64_MAX : UINT32_MAX) in PerformMulCombine()
24927 if (isPowerOf2_64(MulAmt - 1)) in PerformMulCombine()
[all …]