[PATCH] D129715: [LoongArch] Load FP immediates by movgr2fr from materialized integer

Gong LingQin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 19:39:33 PDT 2022


gonglingqin updated this revision to Diff 444860.
gonglingqin added a comment.

Address @xry111's comments. Load FP immediates by movgr2fr from materialized integer if the bitcasted integer can be materialized within 2 instructions.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129715

Files:
  llvm/lib/Target/LoongArch/LoongArchFloat32InstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchFloat64InstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
  llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/test/CodeGen/LoongArch/double-imm.ll
  llvm/test/CodeGen/LoongArch/float-imm.ll
  llvm/test/CodeGen/LoongArch/ir-instruction/double-convert.ll
  llvm/test/CodeGen/LoongArch/ir-instruction/float-convert.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129715.444860.patch
Type: text/x-patch
Size: 20058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220715/f1a5e646/attachment.bin>


More information about the llvm-commits mailing list