[llvm] [X86] Lowering of load atomic float via cast (PR #117189)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 10:45:12 PST 2024


================
@@ -30976,6 +30976,14 @@ bool X86TargetLowering::needsCmpXchgNb(Type *MemType) const {
   return false;
 }
 
+TargetLoweringBase::AtomicExpansionKind
+X86TargetLowering::shouldCastAtomicLoadInIR(LoadInst *LI) const {
+  if (LI->getType()->isVectorTy())
----------------
arsenm wrote:

Currently disallowed by the IR verifier (although we should fix this)

https://github.com/llvm/llvm-project/pull/117189


More information about the llvm-commits mailing list