[PATCH] D128898: [LoongArch] Add codegen support for handling floating point immediates

Gong LingQin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 3 20:41:35 PDT 2022


gonglingqin added inline comments.


================
Comment at: llvm/lib/Target/LoongArch/LoongArchInstrInfo.td:167-174
+// FP immediate patterns.
+def fpimm0 : PatLeaf<(fpimm), [{return N->isExactlyValue(+0.0);}]>;
+
+def fpimm0neg : PatLeaf<(fpimm), [{return N->isExactlyValue(-0.0);}]>;
+
+def fpimm1 : PatLeaf<(fpimm), [{return N->isExactlyValue(+1.0);}]>;
+
----------------
SixWeining wrote:
> Suggest to remove useless blank lines and indent.
Thanks. I will change that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128898



More information about the llvm-commits mailing list