[PATCH] D130806: [InstrProf] Allow noprofile functions to be inlined
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 2 09:31:18 PDT 2022
nickdesaulniers added inline comments.
================
Comment at: llvm/lib/IR/Attributes.cpp:2042-2044
+ if (Caller.hasFnAttribute(Attribute::NoProfile) &&
+ !Callee.hasFnAttribute(Attribute::NoProfile))
+ return false;
----------------
Could we create a new CompatRule fn for this? I imagine we might want to reuse such logic for other attributes in the future.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130806/new/
https://reviews.llvm.org/D130806
More information about the llvm-commits
mailing list