[PATCH] D54546: [ARM] Don't expand sdiv when optimising for minsize

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 23 07:17:55 PST 2018


SjoerdMeijer updated this revision to Diff 175129.
SjoerdMeijer added a comment.

- Don't create div libcalls in ARM mode,
- Bail for SREM instructions. This wasn't checked, and resulted in a crash. Thanks to @dmgreen  for pointing this out. Will follow up on this.


https://reviews.llvm.org/D54546

Files:
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMISelLowering.h
  test/CodeGen/ARM/sdiv-pow2-arm-size.ll
  test/CodeGen/ARM/sdiv-pow2-thumb-size.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54546.175129.patch
Type: text/x-patch
Size: 7953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181123/db48c40c/attachment.bin>


More information about the llvm-commits mailing list