aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-03-10 16:31:27 +0100
committerNikita Popov <npopov@redhat.com>2022-03-23 16:47:35 +0100
commit29fada4a3d3db309f11f7fa7a0c61cd4021e9947 (patch)
tree3da816b63c74795f765b207e02bdf5ae8268f2f3 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
parenta6d238536d95e5c9c49ef2acf1916c95ab087240 (diff)
downloadllvm-29fada4a3d3db309f11f7fa7a0c61cd4021e9947.zip
llvm-29fada4a3d3db309f11f7fa7a0c61cd4021e9947.tar.gz
llvm-29fada4a3d3db309f11f7fa7a0c61cd4021e9947.tar.bz2
[EarlyCSE] Don't eagerly optimize MemoryUses
EarlyCSE currently optimizes all MemoryUses upfront. However, EarlyCSE only actually queries the clobbering memory access for a subset of uses, namely those where a CSE candidate has already been identified. Delaying use optimization to the clobber query improves compile-time in practice. This change is not NFC because EarlyCSE has a limit on the number of clobber queries (EarlyCSEMssaOptCap), in which case it falls back to the defining access. The defining access for uses will now no longer coincide with the optimized access. If there are performance regressions from this change, we should be able to address them by raising this limit. Differential Revision: https://reviews.llvm.org/D121987
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions