[PATCH] D135515: [SPARC] Don't emit deprecated FP branches when targeting v9

Koakuma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 8 08:45:54 PDT 2022


koakuma created this revision.
koakuma added reviewers: venkatra, dcederman, ro, brad.
Herald added subscribers: jrtc27, fedor.sergeev, hiraditya, jyknight.
Herald added a project: All.
koakuma requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Do not emit deprecated v8-style FP branches when targeting a v9 processor.
Also, change the v9 FP compare definitions on TableGen files so that it
allocates over the entire FP CCR set instead of being hardcoded to %fcc0,
to match the behavior of the branch instructions.
(Though at the moment LLVM doesn't seem to use anything other than %fcc0)

Fixes bug #17834 (https://github.com/llvm/llvm-project/issues/17834).

Depends on D130006 <https://reviews.llvm.org/D130006>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135515

Files:
  llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.cpp
  llvm/lib/Target/Sparc/SparcISelLowering.cpp
  llvm/lib/Target/Sparc/SparcISelLowering.h
  llvm/lib/Target/Sparc/SparcInstr64Bit.td
  llvm/lib/Target/Sparc/SparcInstrInfo.cpp
  llvm/lib/Target/Sparc/SparcInstrInfo.td
  llvm/lib/Target/Sparc/SparcRegisterInfo.td
  llvm/test/CodeGen/SPARC/2011-01-11-CC.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135515.466289.patch
Type: text/x-patch
Size: 19636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221008/593be024/attachment.bin>


More information about the llvm-commits mailing list