[PATCH] D113199: [AArch64] Combine fptoi.sat(fmul) to fixed point cvtf

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 5 05:09:51 PDT 2021


SjoerdMeijer added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.td:3770
+
+  def : Pat<(i32 (to_int_sat (fmul f16:$Rn, fixedpoint_f16_i32:$scale), i32)),
+            (!cast<Instruction>(INST # SWHri) $Rn, $scale)>;
----------------
Do we need to predicate this rule and the next on `HasFullFP16`?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113199/new/

https://reviews.llvm.org/D113199



More information about the llvm-commits mailing list