[all-commits] [llvm/llvm-project] 170c55: [RISCV] Use SelectionDAG::isBaseWithConstantOffset...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Jun 3 11:02:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 170c550ca8e3c4174db4c8332257376bdc869a1c
      https://github.com/llvm/llvm-project/commit/170c550ca8e3c4174db4c8332257376bdc869a1c
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

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

  Log Message:
  -----------
  [RISCV] Use SelectionDAG::isBaseWithConstantOffset in scalar load/store address matching.

Test changes are because isBaseWithConstantOffset uses computeKnownBits
and that is able to see that an earlier AND instruction guaranteed
alignment so that we can treat an OR as an ADD.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D126970




More information about the All-commits mailing list