[PATCH] D32451: Improve profile-guided heuristics to use estimated trip count.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 2 12:44:30 PDT 2017


danielcdh added inline comments.


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:7683
+  unsigned ExpectedTC = SE->getSmallConstantMaxTripCount(L);
+  bool HasExpectedTC = (ExpectedTC > 0);
+
----------------
Can this code be refactor with the loop unroller to make something like "isFlatLoop"?


https://reviews.llvm.org/D32451





More information about the llvm-commits mailing list