[PATCH] D104464: [LoopIdiom] Transform memmove-like loop into memmove (PR46179)
Dawid Jurczak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 18 05:11:24 PDT 2021
yurai007 added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp:1340
// have an alignment but non-atomic loads/stores may not.
NewCall = Builder.CreateElementUnorderedAtomicMemCpy(
StoreBasePtr, StoreAlign.getValue(), LoadBasePtr, LoadAlign.getValue(),
----------------
efriedma wrote:
> Do we need to make sure we don't fall into this codepath?
Yes, now this branch is ommited. Added tests to catch such mistakes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104464/new/
https://reviews.llvm.org/D104464
More information about the llvm-commits
mailing list