[PATCH] D109457: [SCEV] Use constant range of RHS to prove NUW on narrow IV in trip count logic
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 8 11:10:09 PDT 2021
reames created this revision.
reames added reviewers: efriedma, nikic, fhahn.
Herald added subscribers: bollu, hiraditya, mcrosier.
reames requested review of this revision.
Herald added a project: LLVM.
The basic idea here is that given a zero extended narrow IV, we can prove the inner IV to be NUW if we can prove there's a value the inner IV must take before overflow which must exit the loop.
This is a follow to D108651 <https://reviews.llvm.org/D108651>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109457
Files:
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/ScalarEvolution/trip-count-implied-addrec.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109457.371397.patch
Type: text/x-patch
Size: 7034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210908/c17339b0/attachment.bin>
More information about the llvm-commits
mailing list