diff options
author | Kazu Hirata <kazu@google.com> | 2020-11-15 22:29:30 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2020-11-15 22:29:30 -0800 |
commit | 147ccc848a5581765a758dc752842053aa0024d0 (patch) | |
tree | 0bb3df40f2330d64df1cddd519db9436e25b1ef1 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | aa0695137791d8e7749dd6be5ea0e6a63bd85854 (diff) | |
download | llvm-147ccc848a5581765a758dc752842053aa0024d0.zip llvm-147ccc848a5581765a758dc752842053aa0024d0.tar.gz llvm-147ccc848a5581765a758dc752842053aa0024d0.tar.bz2 |
[JumpThreading] Call eraseBlock when folding a conditional branch
This patch teaches the jump threading pass to call BPI->eraseBlock
when it folds a conditional branch.
Without this patch, BranchProbabilityInfo could end up with stale edge
probabilities for the basic block containing the conditional branch --
one edge probability with less than 1.0 and the other for a removed
edge.
This patch is one of the steps before we can safely re-apply D91017.
Differential Revision: https://reviews.llvm.org/D91511
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions