[PATCH] D138922: [SPARC] Lower SELECT_CC to MOVr on 64-bit target whenever possible
Koakuma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 07:04:42 PST 2022
koakuma created this revision.
koakuma added reviewers: arsenm, MaskRay, dcederman, brad.
Herald added subscribers: StephenFan, jrtc27, fedor.sergeev, hiraditya, jyknight.
Herald added a project: All.
koakuma requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
On 64-bit target, when doing i64 SELECT_CC where one of the comparison operands is a constant zero, try to fold the compare and MOVcc into a MOVr instruction.
For all integers, EQ and NE comparison are available, additionally for signed integers, GT, GE, LT, and LE is also available.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138922
Files:
llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.cpp
llvm/lib/Target/Sparc/Sparc.h
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/lib/Target/Sparc/SparcISelLowering.h
llvm/lib/Target/Sparc/SparcInstr64Bit.td
llvm/lib/Target/Sparc/SparcInstrAliases.td
llvm/lib/Target/Sparc/SparcInstrFormats.td
llvm/lib/Target/Sparc/SparcInstrInfo.cpp
llvm/lib/Target/Sparc/SparcInstrInfo.td
llvm/test/CodeGen/SPARC/64bit.ll
llvm/test/CodeGen/SPARC/64cond.ll
llvm/test/CodeGen/SPARC/smulo-128-legalisation-lowering.ll
llvm/test/CodeGen/SPARC/umulo-128-legalisation-lowering.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138922.478580.patch
Type: text/x-patch
Size: 24924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221129/5dce3ffa/attachment.bin>
More information about the llvm-commits
mailing list