================
@@ -2639,6 +2639,10 @@ X86TargetLowering::X86TargetLowering(const 
X86TargetMachine &TM,
         setOperationAction(Op, MVT::f32, Promote);
   }
 
+  setOperationPromotedToType(ISD::ATOMIC_LOAD, MVT::f16, MVT::i16);
+  setOperationPromotedToType(ISD::ATOMIC_LOAD, MVT::f32, MVT::i32);
+  setOperationPromotedToType(ISD::ATOMIC_LOAD, MVT::f64, MVT::i64);
----------------
arsenm wrote:

This won't do anything without also overriding shouldCastAtomicLoadInIR. 
AtomicExpand will cast these, and these FP typed ATOMIC_LOADS will never form 

https://github.com/llvm/llvm-project/pull/120386
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to