[PATCH] D133577: [PowerPC] Change CRNOT to a code gen single operand instruction

Nemanja Ivanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 06:54:27 PDT 2022


nemanjai created this revision.
nemanjai added reviewers: chmeee, PowerPC, craig.topper.
Herald added subscribers: StephenFan, shchenz, kbarton, hiraditya.
Herald added a project: All.
nemanjai requested review of this revision.
Herald added a project: LLVM.

Inputs to `crnor` can come from operands with chains so if it is being used simply to negate such an operand, the repeated input cannot be CSE'd. This patch just adds a code-gen only instruction for this that takes a single input and duplicates it in the encoding of the underlying `crnor`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133577

Files:
  llvm/lib/Target/PowerPC/P10InstrResources.td
  llvm/lib/Target/PowerPC/P9InstrResources.td
  llvm/lib/Target/PowerPC/PPCBack2BackFusion.def
  llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  llvm/lib/Target/PowerPC/PPCInstrFormats.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/lib/Target/PowerPC/PPCReduceCRLogicals.cpp
  llvm/test/CodeGen/PowerPC/fp-strict-fcmp-noopt.ll
  llvm/test/CodeGen/PowerPC/fp-strict-fcmp-spe.ll
  llvm/test/CodeGen/PowerPC/fp-strict-fcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133577.459045.patch
Type: text/x-patch
Size: 19938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220909/128ee646/attachment.bin>


More information about the llvm-commits mailing list