[clang] [llvm] [ThinLTO] Support dead RTTI data elimination under -fno-split-lto-unit (PR #126336)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 11 23:11:35 PST 2025
================
@@ -0,0 +1,20 @@
+; RUN: llvm-as %s -o - | llvm-dis -o %t.ll
+; RUN: grep "^\^" %s >%t2
+; RUN: grep "^\^" %t.ll >%t3
+; Expect that the summary information is the same after round-trip through
+; llvm-as and llvm-dis.
+; RUN: diff -b %t2 %t3
+
+target triple = "aarch64-unknown-linux-gnu"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
+ at _ZTSxxx = external global ptr
----------------
luxufan wrote:
File [thinlto-rtti-summary.ll](https://github.com/llvm/llvm-project/pull/126336/files/83b532a3382a07e472558b8813d43a6f51801423#diff-94d2b6e844136b96d1125255692fb6db03c9574cab0e0b58a196aa64f159da2b) only verifies whether the potentially accessed RTTI data is recorded in the summary. It does not include vtables. Do you mean this file [rtti-clean.ll](https://github.com/llvm/llvm-project/pull/126336/files#diff-0dda4fea885085968d9d6996f5383c9a6dbd40b040941ecd507d0f7086399fe9)?
https://github.com/llvm/llvm-project/pull/126336
More information about the cfe-commits
mailing list