[PATCH] D24133: [ARM] Lower UDIV+UREM to UDIV+MLS (and the same for SREM)

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 1 12:52:43 PDT 2016


jmolloy added a comment.

Hi Tim,

Actually this optimization can be good for Oz; in fact it's our primary target. One udiv and one mls is 8 bytes, which OK is 4 bytes more than the call but doesn't require any argument setup/tear down.

Also, we can avoid linking in uidivmod at all, which in small programs is *significant* in terms of code size reduction.

James


https://reviews.llvm.org/D24133





More information about the llvm-commits mailing list