[all-commits] [llvm/llvm-project] 44f0b1: [RISCV] Correct RISCVTTIImpl::getRegUsageForType f...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Oct 14 11:35:03 PDT 2022


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/test/Transforms/LoopVectorize/RISCV/reg-usage.ll

  Log Message:
  -----------
  [RISCV] Correct RISCVTTIImpl::getRegUsageForType for vectors of pointers.

getPrimitiveSizeInBits returns 0 for pointers, we need to query
the size via DataLayout instead.

Reviewed By: reames

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




More information about the All-commits mailing list