- Do a single lookup when querying the map
- Use shorter versions of the LLVM API
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp | ||
---|---|---|
704–705 | Maybe auto [It, Inserted] = ... to avoid cryptic stuff like Insert.first->second? |
Comment Actions
Destructuring bind on the emplace sounds good. I don't particularly mind the repeated calls to operator[] but the signal to noise ratio is about the same and this is quicker.
Maybe auto [It, Inserted] = ... to avoid cryptic stuff like Insert.first->second?