[PATCH] D39443: [ThinLTO] Double bits of module hash used for renaming
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 05:56:23 PDT 2017
tejohnson updated this revision to Diff 120968.
tejohnson added a comment.
Address comment
https://reviews.llvm.org/D39443
Files:
include/llvm/IR/ModuleSummaryIndex.h
Index: include/llvm/IR/ModuleSummaryIndex.h
===================================================================
--- include/llvm/IR/ModuleSummaryIndex.h
+++ include/llvm/IR/ModuleSummaryIndex.h
@@ -743,7 +743,8 @@
static std::string getGlobalNameForLocal(StringRef Name, ModuleHash ModHash) {
SmallString<256> NewName(Name);
NewName += ".llvm.";
- NewName += utostr(ModHash[0]); // Take the first 32 bits
+ NewName += utostr((uint64_t(ModHash[0]) << 32) |
+ ModHash[1]); // Take the first 64 bits
return NewName.str();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39443.120968.patch
Type: text/x-patch
Size: 571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171031/871cd5bd/attachment.bin>
More information about the llvm-commits
mailing list