[NFCI] [LoopIdiom] Let processLoopStridedStore take StoreSize as SCEV instead of...
authoreopXD <eopxd@skymizer.com>
Sat, 19 Jun 2021 14:26:12 +0000 (14:26 +0000)
committereopXD <yueh.ting.chen@gmail.com>
Thu, 5 Aug 2021 05:21:48 +0000 (13:21 +0800)
commit26aa1bbe97a3a1566633abbcf754046a6bffb155
tree058210678df5b56905d962478370e39f14df743f
parent9c3345ad1020bbd8ec61a07339c1d1e804ef3011
[NFCI] [LoopIdiom] Let processLoopStridedStore take StoreSize as SCEV instead of unsigned

Letting it take SCEV allows further modification on the function to optimize
if the StoreSize / Stride is runtime determined.

This is a preceeding of D107353.
The big picture is to let LoopIdiom deal with runtime-determined sizes.

Reviewed By: Whitney, lebedev.ri

Differential Revision: https://reviews.llvm.org/D104595
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp