[llvm] Enable Custom Lowering for fabs.v8f16 on AVX (PR #71730)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 01:52:58 PST 2023


================
@@ -2238,6 +2238,9 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     }
   }
 
+  if (!Subtarget.useSoftFloat() && Subtarget.hasAVX())
+    setOperationAction(ISD::FABS, MVT::v8f16, Custom);
----------------
RKSimon wrote:

Please can you move this inside the main "Subtarget.hasAVX()" section, around line 1425?

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


More information about the llvm-commits mailing list