diff options
author | Ivan Krasin <krasin@chromium.org> | 2016-08-05 19:45:16 +0000 |
---|---|---|
committer | Ivan Krasin <krasin@chromium.org> | 2016-08-05 19:45:16 +0000 |
commit | b05e06e4fd1c7635bb0575b201b3a9912fd16c33 (patch) | |
tree | fbca3891f1ca74d25521841e25cd5e7487f9cf94 /llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl.ll | |
parent | 45e442ebaa1e626174d93380914d9f1133a06d25 (diff) | |
download | bcm5719-llvm-b05e06e4fd1c7635bb0575b201b3a9912fd16c33.tar.gz bcm5719-llvm-b05e06e4fd1c7635bb0575b201b3a9912fd16c33.zip |
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
llvm-svn: 277856
Diffstat (limited to 'llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl.ll')
-rw-r--r-- | llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl.ll b/llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl.ll index 7d665f534a5..ea5247ab636 100644 --- a/llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl.ll +++ b/llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl.ll @@ -1,8 +1,12 @@ -; RUN: opt -S -wholeprogramdevirt %s | FileCheck %s +; RUN: opt -S -wholeprogramdevirt -pass-remarks=wholeprogramdevirt %s 2>&1 | FileCheck %s target datalayout = "e-p:64:64" target triple = "x86_64-unknown-linux-gnu" +; CHECK: remark: <unknown>:0:0: devirtualized call +; CHECK: remark: <unknown>:0:0: devirtualized vf +; CHECK: remark: <unknown>:0:0: devirtualized vf + @vt1 = constant [1 x i8*] [i8* bitcast (void (i8*)* @vf to i8*)], !type !0 @vt2 = constant [1 x i8*] [i8* bitcast (void (i8*)* @vf to i8*)], !type !0 |