[llvm-branch-commits] [llvm] [X86] Manage atomic load of fp -> int promotion in DAG (PR #120386)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Dec 19 22:03:55 PST 2024


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

SelectionDAG making anything legal by default was a terrible mistake but we're not going to fix that here 

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


More information about the llvm-branch-commits mailing list