[all-commits] [llvm/llvm-project] 088bb8: [RISCV] Add more SHXADD patterns where the input i...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Jul 5 16:22:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 088bb8a328e030dfdc74fe464b564e0eb9b3411c
      https://github.com/llvm/llvm-project/commit/088bb8a328e030dfdc74fe464b564e0eb9b3411c
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-07-05 (Tue, 05 Jul 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/test/CodeGen/RISCV/rv64zba.ll

  Log Message:
  -----------
  [RISCV] Add more SHXADD patterns where the input is (and (shl/shr X, C2), C1)

It might be possible to rewrite (and (shl/shr X, C2), C1) in a way
that gives us a left shift that can be folded into a SHXADD.




More information about the All-commits mailing list