[PATCH] D48510: [SampleFDO] Add an option to turn on/off warning about samples unused

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 22 19:18:44 PDT 2018


wmi added a comment.

In https://reviews.llvm.org/D48510#1141389, @tejohnson wrote:

> Does this happen when the code the profile is being applied to is not being built with some necessary debug options like -gmlt? Can/should it be fixed by adding that or another option?


Yes, it is because -g0 is used in the code where the profile is applied. I am not sure whether the -g0 is required or not in that specific case. But I can imagine there is case where some module need to be built using -g0, and if we got sample for such module from elsewhere, the option will be needed there.


Repository:
  rL LLVM

https://reviews.llvm.org/D48510





More information about the llvm-commits mailing list