[all-commits] [llvm/llvm-project] 8444a2: [X86] Update X86InstCombineIntrinsic to use Create...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Tue Jan 5 18:47:09 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8444a2494d3d58baae373e66f8a7070e03c62cc2
      https://github.com/llvm/llvm-project/commit/8444a2494d3d58baae373e66f8a7070e03c62cc2
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2021-01-06 (Wed, 06 Jan 2021)

  Changed paths:
    M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
    M llvm/test/Transforms/InstCombine/X86/x86-avx2-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/X86/x86-avx2.ll
    M llvm/test/Transforms/InstCombine/X86/x86-avx512-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/X86/x86-avx512.ll
    M llvm/test/Transforms/InstCombine/X86/x86-vector-shifts-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/X86/x86-vector-shifts.ll
    M llvm/test/Transforms/InstCombine/X86/x86-vpermil-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/X86/x86-vpermil.ll

  Log Message:
  -----------
  [X86] Update X86InstCombineIntrinsic to use CreateShuffleVector with one vector

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.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D94059




More information about the All-commits mailing list