OSDN Git Service

WholeProgramDevirt: print remarks with devirtualized method names.
authorIvan Krasin <krasin@chromium.org>
Fri, 5 Aug 2016 19:45:16 +0000 (19:45 +0000)
committerIvan Krasin <krasin@chromium.org>
Fri, 5 Aug 2016 19:45:16 +0000 (19:45 +0000)
commit51ae50fd0898123e3f3efe2c10239a220fd4613c
treec23e7f8fc5ff92a66384a9d21d5fee8a2da3b2e3
parent853b86f80a4e8b29f5613c3590203734f904ebb1
WholeProgramDevirt: print remarks with devirtualized method names.

Summary:
Chrome on Linux uses WholeProgramDevirt for speed ups, and it's
important to detect regressions on both sides: the toolchain,
if fewer methods get devirtualized after an update, and Chrome,
if an innocently looking change caused many hot methods become
virtual again.

The need to track devirtualized methods is not Chrome-specific,
but it's probably the only user of the pass at this time.

Reviewers: kcc

Differential Revision: https://reviews.llvm.org/D23219

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277856 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/WholeProgramDevirt.cpp
test/Transforms/WholeProgramDevirt/devirt-single-impl.ll
test/Transforms/WholeProgramDevirt/virtual-const-prop-check.ll