I know if a divisor of a division is a constant like %div = sdiv i32 %a, 999
, the backend will change the division instruction to multiplication and arithmetical shift right to speed up.
But I know there is not all backend do it. Depends on the cost of multiplication.
How to get the information about that on LLVM Optimizer?