aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2025-05-12 15:22:44 +0700
committerGitHub <noreply@github.com>2025-05-12 15:22:44 +0700
commit5a1edf0f515ef7b1448ea0f9584a995ad6591865 (patch)
tree87c289736b060f647c35aef89f251a331f3c5f82 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent63f3a5babdc97992549748afb9d02747185032d3 (diff)
downloadllvm-5a1edf0f515ef7b1448ea0f9584a995ad6591865.zip
llvm-5a1edf0f515ef7b1448ea0f9584a995ad6591865.tar.gz
llvm-5a1edf0f515ef7b1448ea0f9584a995ad6591865.tar.bz2
[NFC] Optimize file kind determination (#139492)
There are checks in clang codebase that determine the type of source file, associated with a given location - specifically, if it is an ordonary file or comes from sources like command-line options or a built-in definitions. These checks often rely on calls to `getPresumedLoc`, which is relatively expensive. In certain cases, these checks are combined, leading to repeated calculations of the costly function negatively affecting compile time. This change tries to optimize such checks. It must fix compile time regression introduced in https://github.com/llvm/llvm-project/pull/137306/. --------- Co-authored-by: cor3ntin <corentinjabot@gmail.com>
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions