aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2025-01-22 11:35:52 -0800
committerGitHub <noreply@github.com>2025-01-22 11:35:52 -0800
commit7ad8a3da4771ce8abbd146611124104d42a4e63e (patch)
treeeb374a11b1d64a64994bffda7c4bbe907abc57f8 /clang/lib/CodeGen/CodeGenModule.h
parent5ede7b6a6bc22aee86e592835ccc4eaa9459e5cd (diff)
downloadllvm-7ad8a3da4771ce8abbd146611124104d42a4e63e.zip
llvm-7ad8a3da4771ce8abbd146611124104d42a4e63e.tar.gz
llvm-7ad8a3da4771ce8abbd146611124104d42a4e63e.tar.bz2
[MemProf] Simplify edge iterations (NFC) (#123469)
Remove edge iterator parameters from the various helpers that move edges onto other nodes, and their associated iterator update code, and instead iterate over copies of the edge lists in the caller loops. This also avoids the need to increment these iterators at every early loop continue. This simplifies the code, makes it less error prone when updating, and in particular, facilitates adding handling of recursive contexts. There were no measurable compile time and memory overhead effects for a large target.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions