diff options
| author | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2022-07-13 23:21:45 +0000 |
|---|---|---|
| committer | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2022-07-13 23:21:45 +0000 |
| commit | c9168405396d9a536743d2bbc1fb9892954b4c03 (patch) | |
| tree | aca59904234ccba7e5001c9b96046c70fbab20ac /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
| parent | 1a65d09dcf9b9bed89f8c4fd848a056ebb507597 (diff) | |
| download | llvm-c9168405396d9a536743d2bbc1fb9892954b4c03.zip llvm-c9168405396d9a536743d2bbc1fb9892954b4c03.tar.gz llvm-c9168405396d9a536743d2bbc1fb9892954b4c03.tar.bz2 | |
[SimplifyCFG] Improve SwitchToLookupTable optimization
Try to use the original value as an index (in the lookup table)
in more cases (to avoid one subtraction and shorten the dependency chain)
(https://github.com/llvm/llvm-project/issues/56189).
Test plan:
1/ ninja check-all
2/ bootstrapped LLVM + Clang pass tests
Differential revision: https://reviews.llvm.org/D128897
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions
