[PATCH] D83948: [PowerPC] Custom lowering for funnel shifts

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 06:36:40 PDT 2020


foad created this revision.
foad added reviewers: hfinkel, RKSimon.
Herald added subscribers: llvm-commits, steven.zhang, shchenz, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.

The custom lowering saves an instruction over the generic expansion, by
taking advantage of the fact that PowerPC shift instructions are well
defined in the shift-by-bitwidth case.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83948

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/test/CodeGen/PowerPC/funnel-shift.ll
  llvm/test/CodeGen/PowerPC/ppcf128-endian.ll
  llvm/test/CodeGen/PowerPC/pr44183.ll
  llvm/test/CodeGen/PowerPC/smulfixsat.ll
  llvm/test/CodeGen/PowerPC/umulfixsat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83948.278452.patch
Type: text/x-patch
Size: 15086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200716/e5f466db/attachment.bin>


More information about the llvm-commits mailing list