[all-commits] [llvm/llvm-project] 1fa35f: [clang] Avoid recalculating TBAA base type info (#...
Nathan Sidwell via All-commits
all-commits at lists.llvm.org
Sat Dec 2 08:55:14 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1fa35f0b5dc2f3427fbade0eaaca6e2d8c32caef
https://github.com/llvm/llvm-project/commit/1fa35f0b5dc2f3427fbade0eaaca6e2d8c32caef
Author: Nathan Sidwell <nathan at acm.org>
Date: 2023-12-02 (Sat, 02 Dec 2023)
Changed paths:
M clang/lib/CodeGen/CodeGenTBAA.cpp
Log Message:
-----------
[clang] Avoid recalculating TBAA base type info (#73264)
As nullptr is a legitimate value, change the BaseTypeMetadataCache hash lookup/insertion to use find and
insert rather than the subscript operator.
Also adjust getBaseTypeInfoHelper to do no insertion, but let getBaseTypeInfo do that.
More information about the All-commits
mailing list