aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-01-18 17:38:08 +0100
committerNikita Popov <npopov@redhat.com>2022-01-20 16:04:24 +0100
commit81d35f27ddec579f616e3f5f15b25fe4cc92236e (patch)
tree749b2706a25bdd457dfc05171c6e2ed82db450c2 /clang/lib/CodeGen/CodeGenFunction.cpp
parent4130357f96bf44e73032ada6d86acd1e8f9f74a1 (diff)
downloadllvm-81d35f27ddec579f616e3f5f15b25fe4cc92236e.zip
llvm-81d35f27ddec579f616e3f5f15b25fe4cc92236e.tar.gz
llvm-81d35f27ddec579f616e3f5f15b25fe4cc92236e.tar.bz2
[DebugInstrRef] Memoize variable order during sorting (NFC)
Instead of constructing DebugVariables and looking up the order in the comparison function, compute the order upfront and then sort a vector of (order, instr). This improves compile-time by -0.4% geomean on CTMark ReleaseLTO-g. Differential Revision: https://reviews.llvm.org/D117575
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions