[all-commits] [llvm/llvm-project] b183cb: [RISCV] Call SelectBaseAddr on the base pointer in...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Feb 26 11:39:59 PST 2021


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    A llvm/test/CodeGen/RISCV/rvv/frameindex-addr.ll

  Log Message:
  -----------
  [RISCV] Call SelectBaseAddr on the base pointer in the custom isel for vector loads and stores.

This will allow FrameIndex as the base address instead of
emitting a separate ADDI from isel. eliminateFrameIndex will likely turn
it back into an ADDI, but this makes things consistent with the
SDPatterns and VLPatterns.

I only tested one case for simplicity. I can test more if reviewers
want.

Reviewed By: frasercrmck

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




More information about the All-commits mailing list