[PATCH] D109294: [Inline] Introduce Constant::hasOneLiveUse, use it instead of hasOneUse in inline cost model (PR51667)

Erik Desjardins via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 4 21:08:05 PDT 2021


erikdesjardins updated this revision to Diff 377078.
erikdesjardins retitled this revision from "[Inline] Remove dead users before checking if function has one use (PR51667)" to "[Inline] Introduce Constant::hasOneLiveUse, use it instead of hasOneUse in inline cost model (PR51667)".
erikdesjardins edited the summary of this revision.
erikdesjardins added a comment.
Herald added a subscriber: dexonsmith.

switch to hasOneLiveUse


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109294

Files:
  llvm/include/llvm/IR/Constant.h
  llvm/lib/Analysis/InlineCost.cpp
  llvm/lib/IR/Constants.cpp
  llvm/test/Transforms/Inline/inline-cost-dead-users.ll
  llvm/test/Transforms/Inline/last-callsite.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109294.377078.patch
Type: text/x-patch
Size: 6447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211005/27b2278b/attachment.bin>


More information about the llvm-commits mailing list