[PATCH] D151165: [ThinLTO] Make the cache key independent of the module identifier paths

Argyrios Kyrtzidis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 06:32:22 PDT 2023


akyrtzi added a comment.

What about changing the code to sort using the module hash:

     llvm::sort(ImportModulesVector,
                [](const ImportModule &Lhs, const ImportModule &Rhs) -> bool {
  -               return Lhs.getId() < Rhs.getId();
  +               return Lhs.getHash() < Rhs.getHash();
                });

would that resolve your issue?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151165



More information about the llvm-commits mailing list