aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAlexis Engelke <engelke@in.tum.de>2024-08-06 09:15:22 +0200
committerGitHub <noreply@github.com>2024-08-06 09:15:22 +0200
commitc2f92fa3ab496a5a8edfe73297ad4f593413af27 (patch)
treebc045d33da76cdde0a97b99024946d05e9ec0641 /clang/lib/CodeGen/CodeGenModule.cpp
parent41b83ca559c402d238e303c0ac233180d60dcd57 (diff)
downloadllvm-c2f92fa3ab496a5a8edfe73297ad4f593413af27.zip
llvm-c2f92fa3ab496a5a8edfe73297ad4f593413af27.tar.gz
llvm-c2f92fa3ab496a5a8edfe73297ad4f593413af27.tar.bz2
[Support] Store dominator tree nodes in a vector (#101705)
Use basic block numbers to store dominator tree nodes in a vector. This avoids frequent map lookups. Use block number epochs to validate that no renumbering occured since the tree was created; after a renumbering, the dominator tree can be updated with updateBlockNumbers(). Block numbers, block number epoch, and max block number are fetched via newly added GraphTraits methods. Graphs which do not implement getNumber() for blocks will use a DenseMap for an ad-hoc numbering.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions