[llvm] [WPD]Regard unreachable function as a possible devirtualizable target (PR #115668)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 13:19:07 PST 2024
================
@@ -1,11 +1,15 @@
+; Test that static devirtualization doesn't happen because there are two
+; devirtualizable targets. Unreachable functions are kept in the devirtualizable
+; target set by default.
+; RUN: opt -S -passes=wholeprogramdevirt -whole-program-visibility -pass-remarks=wholeprogramdevirt %s 2>&1 | FileCheck %s --implicit-check-not="single-impl"
+
; Test that regular LTO will analyze IR, detect unreachable functions and discard unreachable functions
----------------
teresajohnson wrote:
Note that this is only done under the -wholeprogramdevirt-keep-unreachable-function=false option
https://github.com/llvm/llvm-project/pull/115668
More information about the llvm-commits
mailing list