[PATCH] D79959: [SampleFDO] Add use-sample-profile function attribute

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 20 12:02:45 PDT 2020


wmi added a comment.

In D79959#2047294 <https://reviews.llvm.org/D79959#2047294>, @wenlei wrote:

> I guess you accidentally missed InlineCost.cpp in latest version?


I don't need to change InlineCost.cpp. Adding "def : CompatRule<"isEqual<UseSampleProfileAttr>">" in include/llvm/IR/Attributes.td will automatically update the function hasCompatibleFnAttrs auto-generated. hasCompatibleFnAttrs is indirectly called by functionsHaveCompatibleAttributes and getInlineCost.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D79959





More information about the llvm-commits mailing list