diff options
author | Cong Hou <congh@google.com> | 2015-09-18 20:22:41 +0000 |
---|---|---|
committer | Cong Hou <congh@google.com> | 2015-09-18 20:22:41 +0000 |
commit | d40105d3217cb28d2a0ca806a55b33dcac89af93 (patch) | |
tree | 6df6be93a00748691dd6de9b2a1b647d333f2386 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 9b3ee4bf2cffee6e262b34596f7731ff70649eda (diff) | |
download | bcm5719-llvm-d40105d3217cb28d2a0ca806a55b33dcac89af93.tar.gz bcm5719-llvm-d40105d3217cb28d2a0ca806a55b33dcac89af93.zip |
Update edge weights properly when merging blocks in if-conversion.
In if-conversion, there is a utility function MergeBlocks() that is used to merge blocks. However, when new edges are built in this function the edge weight is either not provided or not updated properly, leading to a modified CFG with incorrect edge weights. This patch corrects this issue.
Differential Revision: http://reviews.llvm.org/D12513
llvm-svn: 248030
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions