[llvm-branch-commits] [llvm] [X86] Remove extra MOV after widening atomic load (PR #148898)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 21 09:18:35 PDT 2025
================
@@ -1204,6 +1204,13 @@ def : Pat<(i16 (atomic_load_nonext_16 addr:$src)), (MOV16rm addr:$src)>;
def : Pat<(i32 (atomic_load_nonext_32 addr:$src)), (MOV32rm addr:$src)>;
def : Pat<(i64 (atomic_load_nonext_64 addr:$src)), (MOV64rm addr:$src)>;
+def : Pat<(v4i32 (scalar_to_vector (i32 (zext (i16 (atomic_load_16 addr:$src)))))),
+ (MOVDI2PDIrm addr:$src)>; // load atomic <2 x i8>
----------------
jofrn wrote:
The tests don't require it anymore, so I just removed them at the moment.
https://github.com/llvm/llvm-project/pull/148898
More information about the llvm-branch-commits
mailing list