[PATCH] D125389: [PowerPC][AIX] Allow VSX patterns to be 32-bit and 64-bit safe on P8+.

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 11 07:33:19 PDT 2022


amyk created this revision.
amyk added reviewers: PowerPC, power-llvm-team, nemanjai.
amyk added a project: LLVM.
Herald added subscribers: shchenz, hiraditya.
Herald added a project: All.
amyk requested review of this revision.

This patch updates two patterns involving `scalar_to_vector` and
`SCALAR_TO_VECTOR_PERMUTED` nodes to be safe for both 64-bit and 32-bit by
pulling the patterns out of the 64-bit specific guard.

These patterns are matched on POWER8 and above.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125389

Files:
  llvm/lib/Target/PowerPC/PPCInstrVSX.td
  llvm/test/CodeGen/PowerPC/aix_scalar_vector_permuted.ll
  llvm/test/CodeGen/PowerPC/canonical-merge-shuffles.ll
  llvm/test/CodeGen/PowerPC/float-vector-gather.ll
  llvm/test/CodeGen/PowerPC/load-and-splat.ll
  llvm/test/CodeGen/PowerPC/load-v4i8-improved.ll
  llvm/test/CodeGen/PowerPC/pre-inc-disable.ll
  llvm/test/CodeGen/PowerPC/reduce_scalarization.ll
  llvm/test/CodeGen/PowerPC/scalar_vector_test_4.ll
  llvm/test/CodeGen/PowerPC/vec_insert_elt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125389.428661.patch
Type: text/x-patch
Size: 17983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220511/fe79a9df/attachment.bin>


More information about the llvm-commits mailing list