Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp17299 APInt MulAmtAbs = MulAmt.abs(); in combineMUL() local
17301 if ((MulAmtAbs - 1).isPowerOf2()) { in combineMUL()
17311 DAG.getConstant((MulAmtAbs - 1).logBase2(), DL, VT)); in combineMUL()
17318 } else if ((MulAmtAbs + 1).isPowerOf2()) { in combineMUL()
17328 DAG.getConstant((MulAmtAbs + 1).logBase2(), DL, VT)); in combineMUL()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp14034 uint64_t MulAmtAbs = -MulAmt; in PerformMULCombine() local
14035 if (isPowerOf2_32(MulAmtAbs + 1)) { in PerformMULCombine()
14041 DAG.getConstant(Log2_32(MulAmtAbs + 1), DL, in PerformMULCombine()
14043 } else if (isPowerOf2_32(MulAmtAbs - 1)) { in PerformMULCombine()
14049 DAG.getConstant(Log2_32(MulAmtAbs - 1), DL, in PerformMULCombine()