[PATCH] D38825: [SCEV] Teach SCEV to find maxBECount when loop endbound is variant
Anna Thomas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 11 14:43:13 PDT 2017
anna created this revision.
This patch teaches SCEV to calculate the maxBECount when the end bound
of the loop can vary. Note that we cannot calculate the exactBECount.
This will only be done when both conditions are satisfied:
1. the loop termination condition is strictly LT.
2. the IV is proven to not overflow.
This provides more information to users of SCEV and can be used to
improve identification of finite loops.
https://reviews.llvm.org/D38825
Files:
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/max-trip-count.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38825.118703.patch
Type: text/x-patch
Size: 8783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171011/bcb09afb/attachment.bin>
More information about the llvm-commits
mailing list