[llvm] [CallPromotionUtil] See through function alias when devirtualizing a virtual call on an alloca. (PR #80736)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 15:55:14 PST 2024
================
@@ -77,6 +78,10 @@ void findDevirtualizableCallsForTypeCheckedLoad(
Constant *getPointerAtOffset(Constant *I, uint64_t Offset, Module &M,
Constant *TopLevelGlobal = nullptr);
+// Given a vtable, returns the function pointer specified by Offset.
----------------
minglotus-6 wrote:
done. Also updated function impl to return a pair of nullptr when the not-null pointer cannot be casted to function and is not an alias to a function.
https://github.com/llvm/llvm-project/pull/80736
More information about the llvm-commits
mailing list