[PATCH] D148368: [RemoveRedundantDebugValues] Track registers to efficiently handle many DBG_VALUEs.

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 13:21:11 PDT 2023


rupprecht added a comment.

Trying to get an actual reduction to share in case this isn't the right approach. The source is basically this:

  #include <string>
  #include <map>
  
  static auto* kFoo = new std::map<std::string, std::string>({
  #include "values.inc"
  });

where `values.inc` is a super long list like:

  {"key_1", "value_1" },
  {"key_2", "value_2" },
  {"key_3", "value_3" },
  {"key_4", "value_4" },
  {"key_5", "value_5" },
  {"key_6", "value_6" },
  {"key_7", "value_7" },
  {"key_8", "value_8" },
  {"key_9", "value_9" },
  {"key_10", "value_10" },
  ...

(~3000 lines long)

But it still isn't reproducing like that, so I'm trying to figure out what else is different compared to the internal build.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D148368



More information about the llvm-commits mailing list