[PATCH] D151448: [LoopLoadElimination] Add support for stride equal to -1
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 12:20:47 PDT 2023
fhahn accepted this revision.
fhahn added a comment.
This revision is now accepted and ready to land.
LGTM, thanks!
================
Comment at: llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp:92
/// Return true if the dependence from the store to the load has a
- /// distance of one. E.g. A[i+1] = A[i]
+ /// distance of one.
+ /// E.g. A[i+1] = A[i] (or A[i-1] = A[i] for descending loop)
----------------
nit: maybe `absolute distance of one`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151448/new/
https://reviews.llvm.org/D151448
More information about the llvm-commits
mailing list