[all-commits] [llvm/llvm-project] 11d5c7: [AIX] Add threadId and use nanosecond timestamp in...
Wael Yehia via All-commits
all-commits at lists.llvm.org
Thu Sep 7 10:46:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 11d5c7bd289cb3a3bb326871ae8f37dafa49ed43
https://github.com/llvm/llvm-project/commit/11d5c7bd289cb3a3bb326871ae8f37dafa49ed43
Author: Wael Yehia <wyehia at ca.ibm.com>
Date: 2023-09-07 (Thu, 07 Sep 2023)
Changed paths:
M llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
M llvm/test/CodeGen/PowerPC/aix-static-init-no-unique-module-id.ll
Log Message:
-----------
[AIX] Add threadId and use nanosecond timestamp in sinit/sterm symbols
With ThinLTO, when compiling SPEC 2017 omnetpp_r with -threads=4, two
small modules can end up with the same timestamp in their sinit symbols
when calculating time in seconds, creating duplicate definitions.
This patch uses a timestamp in nanoseconds.
Because the race can be between threads, embed the thread ID as well.
Reviewed By: xingxue, daltenty
Differential Revision: https://reviews.llvm.org/D159319
More information about the All-commits
mailing list