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

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 24 20:38:49 PST 2019


mehdi_amini added inline comments.


================
Comment at: lib/Transforms/IPO/FunctionImport.cpp:781
+    for (auto &S : VI.getSummaryList())
+      if (S->isLive())
+        return;
----------------
Just a drive-by nit: you can just turn the `all_of` to `any_of` I believe


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