[all-commits] [llvm/llvm-project] 735d72: [PowerPC] Fix handling of undefs in the PPC::isSpl...

Wael Yehia via All-commits all-commits at lists.llvm.org
Mon Jun 23 10:22:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 735d721de451067c3a618b309703d0b8beb9cacc
      https://github.com/llvm/llvm-project/commit/735d721de451067c3a618b309703d0b8beb9cacc
  Author: Wael Yehia <wmyehia2001 at yahoo.com>
  Date:   2025-06-23 (Mon, 23 Jun 2025)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    A llvm/test/CodeGen/PowerPC/pr141642.ll

  Log Message:
  -----------
  [PowerPC] Fix handling of undefs in the PPC::isSplatShuffleMask query (#145149)

Currently, the query assumes that a single undef byte implies the rest of
the `EltSize - 1` bytes are undefs, but that's not always true.
e.g. isSplatShuffleMask(
<0,1,2,3,4,5,6,7,undef,undef,undef,undef,0,1,2,3>, 8) should return
false.

---------

Co-authored-by: Wael Yehia <wyehia at ca.ibm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list