aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DebugProgramInstruction.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-10-25 06:23:28 -0700
committerGitHub <noreply@github.com>2025-10-25 06:23:28 -0700
commitd4612449e207e7841e3fd65c21443a6e24edd4c7 (patch)
treeeee53c8e16d57a4ce0d0380f8007c14c53846515 /llvm/lib/IR/DebugProgramInstruction.cpp
parent881b001b07cc761dd9e92c0958f0231ea56298d8 (diff)
downloadllvm-d4612449e207e7841e3fd65c21443a6e24edd4c7.zip
llvm-d4612449e207e7841e3fd65c21443a6e24edd4c7.tar.gz
llvm-d4612449e207e7841e3fd65c21443a6e24edd4c7.tar.bz2
[ADT] Skip DenseMapBase::destroyAll on trivially destructible types (#165080)
DenseMap::destroyAll currently iterates through the entire bucket array to call destructors keys and values. We don't need to do that if we know that both key and value types are trivially destructible, meaning that the destructors are no-ops. This patch introduces "constexpr if" at the beginning of destroyAll to skip the rest of the function if both key and value types are trivially destructible.
Diffstat (limited to 'llvm/lib/IR/DebugProgramInstruction.cpp')
0 files changed, 0 insertions, 0 deletions