[PATCH] D90421: [IndVarSimplify][LoopUtils] Move WidenIV to Utils. NFCI.
Sjoerd Meijer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 29 13:49:12 PDT 2020
SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: fhahn, reames, lebedev.ri, dmgreen.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
SjoerdMeijer requested review of this revision.
This moves `WidenIV` from IndVarSimplify to LoopUtils so that we have `createWideIV` available as a generic helper utility. I.e., this is not only useful in IndVarSimplify, but could be useful for loop transformations. For example, motivation for this refactoring is the loop flatten transformation: if induction variables in a loop nest can be widened, we can avoid having to perform certain overflow checks, enabling this transformation.
https://reviews.llvm.org/D90421
Files:
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/lib/Transforms/Utils/LoopUtils.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90421.301733.patch
Type: text/x-patch
Size: 85416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201029/fd1a4aff/attachment.bin>
More information about the llvm-commits
mailing list