summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2019-08-02 18:37:03 +0000
committerAlina Sbirlea <asbirlea@google.com>2019-08-02 18:37:03 +0000
commit9f057853580ff3853a789daea2b3df7d7bd09851 (patch)
tree732e85673b8a6b22cce6c094813bcdbe2f830c45 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent524990797b8d002788ecb1c64cb17ad19e0879d5 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud