Use optimized hashing while writing time trace by join two hashes to one.
Used for -ftime-trace option.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 30214 Build 30213: arc lint + arc unit
Event Timeline
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
125 | use emplace_back here? |
Comment Actions
Updated, push_back() -> emplace_back()
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
125 | Yes, thanks. |
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
150 | better to include header for StringMap? |
Comment Actions
LGTM with nit.
But I hope rnk take a look.
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
137–138 | I prefer to reuse result of lookup for map here in L139. |
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
137–138 | Ok. |
use emplace_back here?