diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-08-02 18:37:03 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-08-02 18:37:03 +0000 |
commit | 9f057853580ff3853a789daea2b3df7d7bd09851 (patch) | |
tree | 732e85673b8a6b22cce6c094813bcdbe2f830c45 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 524990797b8d002788ecb1c64cb17ad19e0879d5 (diff) | |
download | bcm5719-llvm-9f057853580ff3853a789daea2b3df7d7bd09851.tar.gz bcm5719-llvm-9f057853580ff3853a789daea2b3df7d7bd09851.zip |
[NewPassManager] Resolve assertion in CGSCCPassManager when CallCounts change.
Summary:
If the CallCounts change after an iteration of the DevirtSCCRepeatedPass, this is not reflected in the local CallCounts structure triggering the assertion checking the before/after sizes.
Since it is valid for the size to change and this only uses the CallCounts for the devirtualizing heuristic, keep a <Function*, CallCount> map instead, and make the devirtualizing decision using the counts for the functions that exist both before and after the pass.
Resolves PR42726.
Reviewers: chandlerc
Subscribers: mehdi_amini, jlebar, sanjoy.google, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65621
llvm-svn: 367703
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions