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

Xin Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 26 18:10:57 PST 2019


trentxintong added inline comments.


================
Comment at: lib/Transforms/IPO/FunctionImport.cpp:830
+        visit(Index.getValueInfo(AS->getAliaseeGUID()));
+        continue;
+      }
----------------
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.


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