aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-10-14 11:46:42 -0700
committerCraig Topper <craig.topper@sifive.com>2022-10-14 11:55:48 -0700
commitd3366efd436dfc121d9d2f021c51832a800a8cd9 (patch)
tree89c9866dd8936a0a3209157a3a7947e2ecca92c3 /flang/lib/Frontend/CompilerInvocation.cpp
parent657f68b1f2fd38deb63c23d8f46d12b7fd357e63 (diff)
downloadllvm-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