[all-commits] [llvm/llvm-project] 5bc99f: [RISCV] Select (and (sra x, c2), c1) as (srli (sra...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Aug 4 22:35:59 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bc99fb515f2411e458517f902435c28f2de94c3
      https://github.com/llvm/llvm-project/commit/5bc99fb515f2411e458517f902435c28f2de94c3
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-08-04 (Sun, 04 Aug 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/lack-of-signed-truncation-check.ll
    M llvm/test/CodeGen/RISCV/selectcc-to-shiftand.ll
    M llvm/test/CodeGen/RISCV/signed-truncation-check.ll

  Log Message:
  -----------
  [RISCV] Select (and (sra x, c2), c1) as (srli (srai x, c2-c3), c3). (#101868)

If c1 is a mask with c3 leading zeros and c3 is larger than c2.

Fixes regression reported in #101751.



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