[PATCH] D115981: [InstrProf] Mark counters as used in debug correlation mode

Ellis Hoag via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 28 14:33:28 PST 2021


ellis reclaimed this revision.
ellis added a comment.

After further investigation we realized this patch is needed even for the normal block count case. Currently, it seems the optimizer does not remove globals when they are incremented because it requires a read and a write. In theory this optimization is safe so we should explicitly mark these globals as used.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115981



More information about the llvm-commits mailing list