[PATCH] D71324: [PowerPC] Exploit `vrl(b|h|w|d)` to perform vector rotation

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 19:49:22 PST 2019


lkail created this revision.
lkail added reviewers: PowerPC, hfinkel, jsji, nemanjai.
Herald added subscribers: llvm-commits, shchenz, kbarton, hiraditya.
Herald added a project: LLVM.

Currently, we set legalization action of `ISD::ROTL` vectors as `Expand` in `PPCISelLowering`. However, we can exploit `vrl(b|h|w|d)` to lower `ISD::ROTL` directly.


https://reviews.llvm.org/D71324

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCInstrAltivec.td
  llvm/test/CodeGen/PowerPC/funnel-shift-rot.ll
  llvm/test/CodeGen/PowerPC/vector-rotates.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71324.233250.patch
Type: text/x-patch
Size: 8214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191211/a383a15f/attachment.bin>


More information about the llvm-commits mailing list