[PATCH] D57203: [ThinLTO] Refine reachability check to fix compile time increase

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 27 10:31:06 PST 2019


mehdi_amini added inline comments.


================
Comment at: lib/Transforms/IPO/FunctionImport.cpp:830
+        visit(Index.getValueInfo(AS->getAliaseeGUID()));
+        continue;
+      }
----------------
trentxintong wrote:
> mehdi_amini wrote:
> > I'm wondering about the `continue` here, the alias itself won't go through `Summary->setLive(true);` a few lines below, does it matter? 
> > (I don't know if aliases can't have refs() as well, but it'll also skip the loop)
> My understanding is that the alias has already been set alive when it reaches here, i.e. only live GVs are pushed into the Worklist.
> 
> Thank you for improving this @tejohnson.
Then what is ` Summary->setLive(true);` line for? It only applies to Summary coming from the worklist as well? It just seems strange that this is specific to aliases.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D57203





More information about the llvm-commits mailing list