[PATCH] D112285: [PowerPC] PPC backend optimization to lower int_ppc_tdw/int_ppc_tw intrinsics to TDI/TWI machine instructions

Victor Huang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 21 17:49:06 PDT 2021


NeHuang created this revision.
NeHuang added reviewers: nemanjai, stefanp, PowerPC.
NeHuang added a project: LLVM.
Herald added subscribers: shchenz, kbarton, hiraditya.
NeHuang requested review of this revision.

This patch adds the backend optimization to match XL behavior for the two builtins `__tdw` and `__tw` that when the second input argument is an immediate, emitting `tdi`/`twi` instructions instead of `td`/`tw`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112285

Files:
  llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  llvm/lib/Target/PowerPC/PPCInstr64Bit.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap-64bit-only.ll
  llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112285.381281.patch
Type: text/x-patch
Size: 8478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211022/be9b8883/attachment-0001.bin>


More information about the cfe-commits mailing list