[PATCH] D106930: [ThinLTO] Disallow importing for functions with indir branch to block address

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 27 18:27:26 PDT 2021


wenlei added inline comments.


================
Comment at: llvm/lib/Analysis/ModuleSummaryAnalysis.cpp:275
+      for (User *U : BlockAddress::get(const_cast<BasicBlock *>(&BB))->users())
+        if (!isa<CallBrInst>(*U)) {
+          HasIndirBranchToBlockAddress = true;
----------------
This logic is from InlineCost.cpp, but I'm not sure in what case do we have an indirect call to a block label? 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106930/new/

https://reviews.llvm.org/D106930



More information about the llvm-commits mailing list