[PATCH] D130006: [SPARC] Improve integer branch handling for v9 targets

Koakuma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 18 06:26:55 PDT 2022


koakuma created this revision.
koakuma added reviewers: venkatra, dcederman, 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 branches when targeting a v9 processor.
As a side effect, this also fixes the emission of useless `ba`s when doing conditional branches on 64-bit integer values.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130006

Files:
  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/test/CodeGen/SPARC/atomics.ll
  llvm/test/CodeGen/SPARC/branches-v9.ll
  llvm/test/CodeGen/SPARC/hard-quad-float.ll
  llvm/test/CodeGen/SPARC/missinglabel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130006.445476.patch
Type: text/x-patch
Size: 31303 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220718/f4def031/attachment.bin>


More information about the llvm-commits mailing list