[llvm] [AArch64] Combine vector FNEG+FMA into `FNML[A|S]` (PR #167900)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 28 06:00:14 PST 2025


================
@@ -1524,6 +1524,10 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
 
     for (auto VT : {MVT::v16i8, MVT::v8i8, MVT::v4i16, MVT::v2i32})
       setOperationAction(ISD::GET_ACTIVE_LANE_MASK, VT, Custom);
+
+    for (auto VT : {MVT::v8f16, MVT::v4f32, MVT::v2f64}) {
+      setOperationAction(ISD::FMA, VT, Custom);
+    }
----------------
sdesmalen-arm wrote:

nit: unnecessary curly braces

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


More information about the llvm-commits mailing list