[all-commits] [llvm/llvm-project] 28a686: [flang][NFC] Speed up large DATA statement initial...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Oct 16 16:51:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28a686a704fab6631d18160e5f8ee2e07620ebe1
https://github.com/llvm/llvm-project/commit/28a686a704fab6631d18160e5f8ee2e07620ebe1
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2023-10-16 (Mon, 16 Oct 2023)
Changed paths:
M flang/lib/Semantics/data-to-inits.cpp
M flang/lib/Semantics/data-to-inits.h
Log Message:
-----------
[flang][NFC] Speed up large DATA statement initializations (#67585)
To ensure that the map from symbols to their initial images has an entry
for a particular symbol, use std::map<>::find() before
std::map<>::emplace() to avoid needless memory allocation and
deallocation. Also, combine adjacent intervals in the lists of
initialized ranges so that contiguous initializations don't require long
lists.
Fixes https://github.com/llvm/llvm-project/issues/66452.
More information about the All-commits
mailing list