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 30175 Build 30174: arc lint + arc unit
Event Timeline
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
124 | use emplace_back here? |
Comment Actions
Updated, push_back() -> emplace_back()
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
124 | 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 | ||
---|---|---|
136–138 | I prefer to reuse result of lookup for map here in L139. |
llvm/lib/Support/TimeProfiler.cpp | ||
---|---|---|
136–138 | Ok. |
use emplace_back here?