[PATCH] D83329: [PGO][PGSO] Add profile guided size optimization to loop vectorization legality.

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 14 11:14:42 PDT 2020


davidxl added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp:418
+  bool OptForSize = F->hasOptSize() ||
+                    llvm::shouldOptimizeForSize(TheLoop->getHeader(), PSI, BFI,
+                                                PGSOQueryType::IRPass);
----------------
should the check of F->hasOptSize() also folded into llvm::shouldOptimizeForSize()?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83329





More information about the llvm-commits mailing list