forked from OSchip/llvm-project
f24136f17a
Summary: Add a dominance check to ensure that the possible devirtualizable call is actually dominated by the type test/checked load intrinsic being analyzed. With PGO, after indirect call promotion is performed during the compile step, followed by inlining, we may have a type test in the promoted and inlined sequence that allows an indirect call in that sequence to be devirtualized. That indirect call (inserted by inlining after promotion) will share the same vtable pointer as the fallback indirect call that cannot be devirtualized. Before this patch the code was incorrectly devirtualizing the fallback indirect call. See the new test and the example described there for more details. Reviewers: pcc, vitalybuka Subscribers: mehdi_amini, Prazek, eraman, steven_wu, dexonsmith, llvm-commits Differential Revision: https://reviews.llvm.org/D52514 llvm-svn: 343226 |
||
---|---|---|
.. | ||
Inputs | ||
alias_import.ll | ||
alias_resolution.ll | ||
autoupgrade.ll | ||
cache-config.ll | ||
cache-icall.ll | ||
cache-import-lists.ll | ||
cache-typeid-resolutions.ll | ||
cache.ll | ||
callees-metadata.ll | ||
cfi-devirt.ll | ||
cfi-distributed.ll | ||
cfi-icall.ll | ||
cfi.ll | ||
crash_debuginfo.ll | ||
deadstrip.ll | ||
debuginfo-compositetype-import.ll | ||
debuginfo-cu-import.ll | ||
devirt-after-icp.ll | ||
diagnostic-handler-remarks-with-hotness.ll | ||
diagnostic-handler-remarks.ll | ||
dicompositetype-unique-alias.ll | ||
dicompositetype-unique.ll | ||
dicompositetype-unique2.ll | ||
distributed_import.ll | ||
distributed_indexes.ll | ||
dot-dumper.ll | ||
drop-debug-info.ll | ||
dsolocal_dllimport.ll | ||
emit_imports.ll | ||
empty-module.ll | ||
empty_module_with_cache.ll | ||
export.ll | ||
funcimport-debug.ll | ||
funcimport-tbaa.ll | ||
funcimport.ll | ||
funcimport2.ll | ||
globals-import-const-fold.ll | ||
globals-import.ll | ||
import_opaque_type.ll | ||
internalize.ll | ||
lazyload_metadata.ll | ||
linkonce_aliasee_ref_import.ll | ||
linkonce_odr_unnamed_addr.ll | ||
linkonce_resolution_comdat.ll | ||
lit.local.cfg | ||
llvm.used.ll | ||
local_name_conflict.ll | ||
merge-triple.ll | ||
module_asm2.ll | ||
module_asm_glob.ll | ||
module_summary_graph_traits.ll | ||
newpm-basic.ll | ||
noinline.ll | ||
personality-local.ll | ||
personality.ll | ||
prefix_replace.ll | ||
reference_non_importable.ll | ||
referenced_by_constant.ll | ||
save_objects.ll | ||
section.ll | ||
tli-nobuiltin.ll | ||
weak_resolution.ll | ||
weak_resolution_single.ll |