[PATCH] D103799: [CostModel] Express cost(urem) as cost(div+mul+sub) when set to Expand.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 7 03:06:31 PDT 2021


sdesmalen added a comment.

This mimics the implementation in SelectionDAG which uses `TargetLowering::expandREM`  (see e.g. D81511 <https://reviews.llvm.org/D81511>)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103799/new/

https://reviews.llvm.org/D103799



More information about the llvm-commits mailing list