File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
lib/Transforms/Instrumentation
test/Transforms/PGOProfile Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,7 @@ static cl::list<std::string> ICPIgnoredBaseTypes(
138138 " A list of mangled vtable names. Classes specified by the vtables "
139139 " and their derived ones will not be vtable-ICP'ed. Useful when the "
140140 " profiled types and actual types in the optimized binary could be "
141- " different due to profiling "
142- " limitations." ));
141+ " different due to profiling limitations." ));
143142
144143namespace {
145144
Original file line number Diff line number Diff line change 11; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
22
3+ ; Tests that ICP compares vtables by checking IR.
34; RUN: opt < %s -passes='pgo-icall-prom' -pass-remarks=pgo-icall-prom -enable-vtable-profile-use -icp-max-num-vtable-last-candidate=2 -S 2>&1 | FileCheck %s --check-prefixes=VTABLE-COMMON,VTABLE-CMP
5+ ; Require exactly one vtable candidate for each function candidate. Tests that ICP compares function by checking IR.
46; RUN: opt < %s -passes='pgo-icall-prom' -pass-remarks=pgo-icall-prom -enable-vtable-profile-use -icp-max-num-vtable-last-candidate=1 -S 2>&1 | FileCheck %s --check-prefixes=VTABLE-COMMON,FUNC-CMP
5- ; RUN: opt < %s -passes='pgo-icall-prom' -pass-remarks=pgo-icall-prom -enable-vtable-profile-use -icp-max-num-vtable-last-candidate=1 -icp-ignored-base-types='Base1' -S 2>&1 | FileCheck %s --check-prefixes=VTABLE-COMMON,FUNC-CMP
7+ ; On top of line 4, ignore 'Base1' and its derived types for vtable-based comparison. Tests that ICP compares functions.
8+ ; RUN: opt < %s -passes='pgo-icall-prom' -pass-remarks=pgo-icall-prom -enable-vtable-profile-use -icp-max-num-vtable-last-candidate=2 -icp-ignored-base-types='Base1' -S 2>&1 | FileCheck %s --check-prefixes=VTABLE-COMMON,FUNC-CMP
69
710target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
811target triple = "x86_64-unknown-linux-gnu"
You can’t perform that action at this time.
0 commit comments