[PATCH] D130543: [RISCV]Enable isIntDivCheap when attribute is minsize

Liao Chunyu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 21:11:57 PDT 2022


liaolucy created this revision.
liaolucy added reviewers: craig.topper, asb, frasercrmck, jrtc27, reames.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
liaolucy requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Don't expand divisions by constants when attribute is minsize.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130543

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/test/CodeGen/RISCV/div_minsize.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130543.447554.patch
Type: text/x-patch
Size: 4689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220726/db565bb6/attachment.bin>


More information about the llvm-commits mailing list