[all-commits] [llvm/llvm-project] e335e8: [InstCombine] Update instcombine for vectorOps to ...

ManuelJBrito via All-commits all-commits at lists.llvm.org
Tue May 16 23:58:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e335e8a43287b8258c719d7a21c4264b0550c554
      https://github.com/llvm/llvm-project/commit/e335e8a43287b8258c719d7a21c4264b0550c554
  Author: ManuelJBrito <manuel.brito at tecnico.ulisboa.pt>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
    M llvm/test/Transforms/InstCombine/broadcast.ll
    M llvm/test/Transforms/InstCombine/vec_shuffle-inseltpoison.ll
    M llvm/test/Transforms/InstCombine/vec_shuffle.ll
    M llvm/test/Transforms/SLPVectorizer/X86/pr49081.ll

  Log Message:
  -----------
  [InstCombine] Update instcombine for vectorOps to use new shufflevector semantics

This patch updates the transformations in InstCombineVectorOps to use the new
hufflevector semantics that say that undefined values in the mask yield poison.

To prevent miscompilations we have to match with m_Poison instead of m_Undef.
Otherwise, we might introduce poison where there was previously undef.

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




More information about the All-commits mailing list