[llvm] [WholeProgramDevirt] Add check for AvailableExternal and give up icall.branch.funnel (PR #143468)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 08:11:12 PDT 2025


================
@@ -1456,6 +1456,12 @@ void DevirtModule::tryICallBranchFunnel(
   if (!HasNonDevirt)
     return;
 
+  // If any GV is AvailableExternally, drop to generate branch.funnel
----------------
teresajohnson wrote:

Change "drop to generate" to "do not generate". Also, please add a note that this avoids a crash in LowerTypeTest due to the GV being dropped resulting in a null GlobalTypeMember.

https://github.com/llvm/llvm-project/pull/143468


More information about the llvm-commits mailing list