[all-commits] [llvm/llvm-project] a41c1f: [RISCV] Make selectShiftMask look for negate oppor...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Oct 23 14:24:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a41c1f31689b4d95b43cbfccdd0040d134b1922f
      https://github.com/llvm/llvm-project/commit/a41c1f31689b4d95b43cbfccdd0040d134b1922f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-10-23 (Sun, 23 Oct 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/rotl-rotr.ll

  Log Message:
  -----------
  [RISCV] Make selectShiftMask look for negate opportunities after looking through AND.

Previously we would only look for an AND or a negate. But its
possible there is a negate after looking through the AND.




More information about the All-commits mailing list