[PATCH] D89586: [SCEV] Use the number of steps of an IV to clamp max BTC (WIP).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 16 12:37:00 PDT 2020


fhahn created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
fhahn requested review of this revision.

As discussed in D89381 <https://reviews.llvm.org/D89381>, we can use the range of an non-wrapping IV to
clamp down the max BTC in some cases.

This impacts a few other test cases that I still need to update and it
seems in some cases the new bound is more precise than the exact exit
count, which I still need to investigate. I just wanted to share this
early.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89586

Files:
  llvm/lib/Analysis/ScalarEvolution.cpp
  llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
  llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-limit-by-wrapping.ll
  llvm/test/Analysis/ScalarEvolution/trip-count.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89586.298723.patch
Type: text/x-patch
Size: 9998 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201016/4e557159/attachment.bin>


More information about the llvm-commits mailing list