[PATCH] D111456: [InlineCost] model calls to llvm.objectsize.*

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 8 12:00:46 PDT 2021


nickdesaulniers created this revision.
nickdesaulniers added reviewers: kazu, void, mtrofin, knaumov, chandlerc.
Herald added subscribers: haicheng, hiraditya, eraman.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Very similar to https://reviews.llvm.org/D111272. We very often can
evaluate calls to llvm.objectsize.* regardless of inlining. Don't count
calls to llvm.objectsize.* against the InlineCost when we can evaluate
the call to a constant.

Link: https://github.com/ClangBuiltLinux/linux/issues/1302


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111456

Files:
  llvm/lib/Analysis/InlineCost.cpp
  llvm/test/Transforms/Inline/call-intrinsic-objectsize.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111456.378331.patch
Type: text/x-patch
Size: 5005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211008/9a1cf92b/attachment.bin>


More information about the llvm-commits mailing list