aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorYevgeny Rouban <yrouban@azul.com>2020-11-06 13:11:08 +0700
committerYevgeny Rouban <yrouban@azul.com>2020-11-06 13:13:58 +0700
commite38c8e7590a0a82be24f3bcc5b87736498f2cb07 (patch)
tree412eed2d444a7b21dca3106ca8b555ac3aeee177 /clang/lib/CodeGen/CodeGenFunction.cpp
parent60e2c5b03b590fbb1477d3d7170d5bd434b39ce9 (diff)
downloadllvm-e38c8e7590a0a82be24f3bcc5b87736498f2cb07.zip
llvm-e38c8e7590a0a82be24f3bcc5b87736498f2cb07.tar.gz
llvm-e38c8e7590a0a82be24f3bcc5b87736498f2cb07.tar.bz2
[BranchProbabilityInfo] Remove block handles in eraseBlock()
BranchProbabilityInfo::eraseBlock() is a public method and can be called without deleting the block itself. This method is made remove the correspondent tracking handle from BranchProbabilityInfo::Handles along with the probabilities of the block. Handles.erase() call is moved to eraseBlock(). In setEdgeProbability() we need to add the block handle only once. Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D90838
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions