[all-commits] [llvm/llvm-project] 820c8c: [RISCV] Check isFixedLengthVector before calling g...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Feb 10 13:18:46 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 820c8c79c87532b44c62a53cc3865cda8a0846ee
      https://github.com/llvm/llvm-project/commit/820c8c79c87532b44c62a53cc3865cda8a0846ee
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-02-10 (Mon, 10 Feb 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    A llvm/test/CodeGen/RISCV/rvv/pr125306.ll

  Log Message:
  -----------
  [RISCV] Check isFixedLengthVector before calling getVectorNumElements in getSingleShuffleSrc. (#125455)

I have been unsuccessful at further reducing the test. The
failure requires a shuffle with 2 scalable->fixed extracts with
the same source. 0 is the only valid index for a scalable->fixed
extract so the 2 sources must be the same extract. Shuffles with
the same source are aggressively canonicalized to a unary shuffle.
So it requires the extracts to become identical through other
optimizations without the shuffle being canonicalized before it is
lowered.

Fixes #125306.

(cherry picked from commit 7c5100d36d8027dd205d6ec410a63c3930a1d9c1)



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