[clang] [llvm] [Clang]: Enable speculative devirtualization (PR #159685)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 07:35:29 PST 2025
================
@@ -0,0 +1,78 @@
+// Test that the vtable metadata that are emitted by Clang when speculative devirtualization
+// is enabled can be used by the WholeProgramDevirt pass without being dropped on the way.
----------------
teresajohnson wrote:
Since this is testing LLVM behavior, it should be an llvm side test - just take the LLVM IR generated from clang and move it under llvm/test/Transforms/DropUnnecessaryAssumes and use "opt" to test. You could test "opt -O3" as well as "opt -passes=drop-unnecessary-assumes".
https://github.com/llvm/llvm-project/pull/159685
More information about the llvm-commits
mailing list