[PATCH] D104679: [LoopUnrolling] Add flag to restrict the unroll with large loop size

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 22 22:30:52 PDT 2021


Allen added a comment.

Yes, In fact, we already have many cutoffs , but they are only limit special type of getExpr , such as:

MaxArithDepth and MaxAddRecSize is used for getMulExpr, MaxCastDepth is used for getTruncateExpr, so it is natural that
we don't cover all the path of  getXExpr variants.

if I add a new cutoff for getSCEV, there will still some other cases need to add, do we have some more general idea to dispose this ?
If no, I can just add one for getSCEV firstly.


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

https://reviews.llvm.org/D104679



More information about the llvm-commits mailing list