[PATCH] D108353: [loop-idiom] Support memcpy instructions for memmove-like loops
Dawid Jurczak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 19 07:12:48 PDT 2021
yurai007 added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp:1356
+ UseMemMove =
+ !mayLoopAccessLocation(LoadBasePtr, ModRefInfo::Mod, CurLoop, BECount,
+ StoreSizeSCEV, *AA, IgnoredInsts);
----------------
IIRC I think I had 'kind of' similar idea to use 4th mayLoopAccessLocation but since it seems expensive I ended up in 3 calls: https://reviews.llvm.org/D107075 I admit I didn't measure impact on compile time. Maybe it's not so bad.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108353/new/
https://reviews.llvm.org/D108353
More information about the llvm-commits
mailing list