[llvm] AArch64: Select FCANONICALIZE (PR #104429)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 01:28:24 PDT 2024
================
@@ -5063,6 +5063,12 @@ def : Pat<(fmaxnum_ieee (f32 FPR32:$a), (f32 FPR32:$b)),
def : Pat<(fmaxnum_ieee (f16 FPR16:$a), (f16 FPR16:$b)),
(FMAXNMHrr FPR16:$a, FPR16:$b)>;
+def : Pat<(f16 (fcanonicalize f16:$a)),
+ (FMINNMHrr f16:$a, f16:$a)>;
----------------
davemgreen wrote:
FP16 patterns require a hasFullFP16 predicate, otherwise the instructions will not be available. Same for vector patterns.
https://github.com/llvm/llvm-project/pull/104429
More information about the llvm-commits
mailing list