Page MenuHomePhabricator

code size: don't expand div
ClosedPublic

Authored by SjoerdMeijer on Jul 8 2016, 5:40 AM.

Details

Summary

Code size optimisation: don't expand a div to a mul and and a shift sequence. As a result, the urem instruction will not be expanded to a sequence of umull, lsrs, muls and sub instructions, but just a call to __aeabi_uidivmod.

Diff Detail

Repository
rL LLVM

Event Timeline

SjoerdMeijer retitled this revision from to code size: don't expand div.
SjoerdMeijer updated this object.
SjoerdMeijer added a subscriber: llvm-commits.
jmolloy accepted this revision.Jul 8 2016, 5:45 AM
jmolloy edited edge metadata.

Hi Sjoerd,

This looks trivially correct to me.

James

This revision is now accepted and ready to land.Jul 8 2016, 5:45 AM
This revision was automatically updated to reflect the committed changes.