[PATCH] D147541: [X86] Add InstFixup for masked `unpck{l|h}pd` -> masked `shufpd`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 09:05:44 PDT 2023


goldstein.w.n created this revision.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is a follow up D147507 <https://reviews.llvm.org/D147507> which removed the prior transformation to
`shufps` which was incorrect as the mask was for 64-bit double
elements, not 32-bit float elements. Using `shufpd` for the
replacement, however, preserves the mask semantics and has the same
benefits as `shufps`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147541

Files:
  llvm/lib/Target/X86/X86FixupInstTuning.cpp
  llvm/test/CodeGen/X86/tuning-shuffle-unpckpd-avx512.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147541.510833.patch
Type: text/x-patch
Size: 17841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230404/fc581249/attachment.bin>


More information about the llvm-commits mailing list