[llvm] [WPD]Regard unreachable function as a possible devirtualizable target (PR #115668)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 21:07:56 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
----------------
minglotus-6 wrote:
done.
https://github.com/llvm/llvm-project/pull/115668
More information about the llvm-commits
mailing list