aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-12-10 10:58:06 -0800
committerAdrian Prantl <aprantl@apple.com>2019-12-10 15:57:53 -0800
commit70e3d0ea55e8b9385168d389fcba16a283f20214 (patch)
tree74fce680ebff340a4dc573acda73da034ca50a24 /llvm/lib/Transforms/Utils/Local.cpp
parent62a6d9770450f93a2dcdf04710a73341af2f54fa (diff)
downloadllvm-70e3d0ea55e8b9385168d389fcba16a283f20214.zip
llvm-70e3d0ea55e8b9385168d389fcba16a283f20214.tar.gz
llvm-70e3d0ea55e8b9385168d389fcba16a283f20214.tar.bz2
[FormatManager] Move Language lookup into the obviously non-cached part (NFC)
This refactoring makes the lookup caching easier to reason about. This has no observable effect although it does slightly change what is being cached. - Before this patch a negative lookup in the LanguageCategory would be cached, but a positive wouldn't. - After this patch LanguageCategory lookups aren't cached by FormatManager, period. (LanguageCategory has its own FormatCache for this!) Differential Revision: https://reviews.llvm.org/D71289
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions