[llvm] Enable unaligned loads on x86 using cmpxchg (PR #142645)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 11:53:32 PDT 2025
================
@@ -137,6 +137,9 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
// Set up the TargetLowering object.
+ // X86 supports unaligned atomic memory accesses via cmpxchg8b and cmpxchg16b
----------------
AZero13 wrote:
Yeah, it would not use cmpxchg16b
https://github.com/llvm/llvm-project/pull/142645
More information about the llvm-commits
mailing list