[PATCH] D25384: [ThinLTO] Record references to aliases to calls

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 16:39:23 PDT 2016


mehdi_amini added inline comments.


================
Comment at: lib/Analysis/ModuleSummaryAnalysis.cpp:58
         // specially by WriteFunction and are added to a separate list.
-        if (!(CS && CS.isCallee(&OI)))
+        if (!(CS && CS.isCallee(&OI) && CS.getCalledFunction()))
           RefEdges.insert(Operand);
----------------
I don't understand this change. I seem to me that you're adding a reference when we're calling an alias. Why isn't the alias added as a callee?


https://reviews.llvm.org/D25384





More information about the llvm-commits mailing list