[all-commits] [llvm/llvm-project] 5f3500: [RISCV] Remove a ComputeNumSignBits call from an i...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Feb 4 23:32:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f350099960c7615d8b0329fd3c251cbfd260407
      https://github.com/llvm/llvm-project/commit/5f350099960c7615d8b0329fd3c251cbfd260407
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

  Log Message:
  -----------
  [RISCV] Remove a ComputeNumSignBits call from an isel special case.

Only isel (and (srl (sexti32 Y), c2), c1) -> (srliw (sraiw Y, 31), c3 - 32)
when there is a sext_inreg present. Don't both checking for Y
having 32 sign bits.




More information about the All-commits mailing list