[PATCH] D136525: [M68k] Add codegen pattern for atomic load / store
Min-Yih Hsu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 30 22:07:24 PDT 2022
myhsu added inline comments.
================
Comment at: llvm/lib/CodeGen/AtomicExpandPass.cpp:176
return Alignment >= Size &&
- Size <= TLI->getMaxAtomicSizeInBitsSupported() / 8;
+ Size <= TLI->getMaxAtomicSizeInBitsSupported(I) / 8;
}
----------------
myhsu wrote:
> I think you tried to turn every atomic operations but atomic_load / store / cmpxchg into libcall here. But even we don't turn them into libcalls in this pass, we still can do that during legalization by marking the corresponding SDNode as Expand or LibCall, right?
*corresponding operation as Expand or LibCall
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136525/new/
https://reviews.llvm.org/D136525
More information about the llvm-commits
mailing list