[all-commits] [llvm/llvm-project] 6882a3: [RISCV] Add BREV8 and ORC_B to hasAllNBitUsers in ...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Jul 11 09:24:12 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6882a30acec695beab568d5393af9bd15970d0d6
      https://github.com/llvm/llvm-project/commit/6882a30acec695beab568d5393af9bd15970d0d6
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-07-11 (Fri, 11 Jul 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp
    M llvm/test/CodeGen/RISCV/sextw-removal.ll

  Log Message:
  -----------
  [RISCV] Add BREV8 and ORC_B to hasAllNBitUsers in RISCVOptWInstrs. (#148076)

These were removed in #147830 due to ignoring that these instructions
operate on bytes. This patch adds them back with tests including a test
for the byte boundary issue.

I seperated out the commits to show bad optimization if we don't round
Bits to the nearest byte.



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