[PATCH] D94059: [X86] Update X86InstCombineIntrinsic to use unary CreateShuffleVector

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 20:40:40 PST 2021


aqjune created this revision.
aqjune added reviewers: spatel, nikic, RKSimon, craig.topper.
Herald added subscribers: pengfei, hiraditya.
aqjune requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch updates X86InstCombineIntrinsic.cpp to use the newly updated CreateShuffleVector.

The tests are updated because the updated CreateShuffleVector uses poison value for the second vector.
If I didn't miss something, the masks in the tests are choosing elements from the first vector only; therefore the tests are having equivalent behavior.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94059

Files:
  llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
  llvm/test/Transforms/InstCombine/X86/x86-avx2-inseltpoison.ll
  llvm/test/Transforms/InstCombine/X86/x86-avx2.ll
  llvm/test/Transforms/InstCombine/X86/x86-avx512-inseltpoison.ll
  llvm/test/Transforms/InstCombine/X86/x86-avx512.ll
  llvm/test/Transforms/InstCombine/X86/x86-vpermil-inseltpoison.ll
  llvm/test/Transforms/InstCombine/X86/x86-vpermil.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94059.314500.patch
Type: text/x-patch
Size: 162119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210105/7fb1fa7e/attachment-0001.bin>


More information about the llvm-commits mailing list