efriedma added a comment. On thumbv8, if you're dividing by a power of two greater than 128, I think you save zero bytes (it's eight bytes either way); is that right? This affects non-ARM targets; do you know what the effect is on those targets? https://reviews.llvm.org/D54546