Files
clang-p2996/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
Mingming Liu 8ea858b967 [CallPromotionUtil] See through function alias when devirtualizing a virtual call on an alloca. (#80736)
- Extract utility function from
`DevirtModule::tryFindVirtualCallTargets` [1], which sees through an alias to a function. Call this utility function in
the WPD callsite.
- For type profiling work, this helper function will be used by indirect-call-promotion pass to find the function pointer at a specified vtable offset (an example in [2])

[1] b99163fe8f/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp (L1069-L1082)
[2] 77a0ef12de/llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp (L347)
2024-02-06 09:22:34 -08:00

99 KiB