[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
Tue Oct 5 18:11:38 PDT 2021


erikdesjardins updated this revision to Diff 377408.
erikdesjardins added a comment.

remove unused functions, unify constantIsDead/removeDeadUsersOfConstant


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.377408.patch
Type: text/x-patch
Size: 7188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/7113a9c3/attachment.bin>


More information about the llvm-commits mailing list