aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2025-08-01 12:51:12 -0700
committerGitHub <noreply@github.com>2025-08-01 12:51:12 -0700
commitdc90472532702b202e93839c6d980d3b584a60cf (patch)
tree1cbb53135824c2053895f6ef3c1109be7a8dd8a7 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parent9fdb5e1fef223c777d9cdf2f6d5eaffb33c59b0d (diff)
downloadllvm-dc90472532702b202e93839c6d980d3b584a60cf.zip
llvm-dc90472532702b202e93839c6d980d3b584a60cf.tar.gz
llvm-dc90472532702b202e93839c6d980d3b584a60cf.tar.bz2
[MemProf] Ensure node merging happens for newly created nodes (#151593)
We weren't performing node merging on newly created nodes in some cases. Use a simple iteration over the node and its callers until no more opportunities are found. I confirmed that for several large codes the max iterations is 3 (meaning we only needed to do any work on the first 2, as expected). This can potentially be made more elegant in the future, but it is a simple and effective solution. Also fix a bug exposed by the test case, getting the function for a call instruction in the FullLTO handling, using an existing method to look through aliases if needed.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions