diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-10-14 11:46:42 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-10-14 11:55:48 -0700 |
commit | d3366efd436dfc121d9d2f021c51832a800a8cd9 (patch) | |
tree | 89c9866dd8936a0a3209157a3a7947e2ecca92c3 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 657f68b1f2fd38deb63c23d8f46d12b7fd357e63 (diff) | |
download | llvm-d3366efd436dfc121d9d2f021c51832a800a8cd9.zip llvm-d3366efd436dfc121d9d2f021c51832a800a8cd9.tar.gz llvm-d3366efd436dfc121d9d2f021c51832a800a8cd9.tar.bz2 |
[LV] Simplify register usage code and avoid double map lookups. NFC
Instead of checking whether a map entry exists to decide if we should
initialize it or add to it, we can rely on the map entry being constructed
and initialized to 0 before the addition happens.
For the std::max case, I've made a reference to the map entry to
avoid looking it up twice.
Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D135977
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions