commit | ee62c40eae93c180d29e94841fbeb280ee737d26 | [log] [tgz] |
---|---|---|
author | Yevgeny Rouban <yevgeny.rouban@azul.com> | Mon Jun 17 05:55:12 2019 |
committer | Yevgeny Rouban <yevgeny.rouban@azul.com> | Mon Jun 17 05:55:12 2019 |
tree | fdbbcb0883b4bdaabddb64c70309b9f0e8f46c96 | |
parent | 1d1cf30b738b88a58919221cc419109ba9519a61 [diff] |
[SimplifyCFG] Fix prof branch_weights MD while removing unreachable switch cases SimplifyCFG has a bug that results in inconsistent prof branch_weights metadata if unreachable switch cases are removed. This patch fixes this bug by making use of the newly introduced SwitchInstProfUpdateWrapper class (see patch D62122). A new test is created. Differential Revision: https://reviews.llvm.org/D62186 llvm-svn: 363527