[PATCH] D132824: [LoongArch] Support ISD::BR_CC and branch according to condition flag register

Gong LingQin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 28 23:37:47 PDT 2022


gonglingqin created this revision.
gonglingqin added reviewers: xen0n, xry111, SixWeining, wangleiat, MaskRay.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
gonglingqin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Use bceqz/bcnez instead of movcf2gr + bnez/beqz for branch jumps.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132824

Files:
  llvm/lib/Target/LoongArch/LoongArchFloat32InstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchFloat64InstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/test/CodeGen/LoongArch/double-br-fcmp.ll
  llvm/test/CodeGen/LoongArch/float-br-fcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132824.456259.patch
Type: text/x-patch
Size: 68040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220829/6812c5a3/attachment.bin>


More information about the llvm-commits mailing list