[all-commits] [llvm/llvm-project] 795090: [RISCV] Fix a bug accidentally introduced in e9311f9

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Jan 24 17:17:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 795090739cf3b295be750dfba0af2ba993e60cdd
      https://github.com/llvm/llvm-project/commit/795090739cf3b295be750dfba0af2ba993e60cdd
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2024-01-24 (Wed, 24 Jan 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/fixed-vector-i8-index-cornercase.ll

  Log Message:
  -----------
  [RISCV] Fix a bug accidentally introduced in e9311f9

If we're lowering an e8 m8 shuffle and we have an index value greater than
255, we have no available space to generate an e16 index vector.  The
code had originally handled this correctly, but in a recent refactoring
I had moved the single source code above the check, and thus broke the
single source by accident.

I have a change on review to rework this (https://github.com/llvm/llvm-project/pull/79330), but for now, go with the most obvious fix.




More information about the All-commits mailing list