[all-commits] [llvm/llvm-project] f1764d: [InlineCost] model calls to llvm.objectsize.*
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Tue Jan 24 15:10:15 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f1764d5b594ff6edbf8d17d196eb0b7a653ac0fc
https://github.com/llvm/llvm-project/commit/f1764d5b594ff6edbf8d17d196eb0b7a653ac0fc
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2023-01-24 (Tue, 24 Jan 2023)
Changed paths:
M llvm/lib/Analysis/InlineCost.cpp
A llvm/test/Transforms/Inline/call-intrinsic-objectsize.ll
Log Message:
-----------
[InlineCost] model calls to llvm.objectsize.*
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
Reviewed By: manojgupta
Differential Revision: https://reviews.llvm.org/D111456
More information about the All-commits
mailing list