[all-commits] [llvm/llvm-project] 848798: [RISCV] Add target specific loop unrolling and pee...

Michael Berg via All-commits all-commits at lists.llvm.org
Tue Dec 7 15:07:58 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8487981a7249f7c080d5395ebee0e8b969c6f47c
      https://github.com/llvm/llvm-project/commit/8487981a7249f7c080d5395ebee0e8b969c6f47c
  Author: Michael Berg <michael.berg at sifive.com>
  Date:   2021-12-07 (Tue, 07 Dec 2021)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
    A llvm/test/Transforms/LoopUnroll/RISCV/unroll.ll

  Log Message:
  -----------
  [RISCV] Add target specific loop unrolling and peeling preferences

Both these preference helper functions have initial support with
this change. The loop unrolling preferences are set with initial
settings to control thresholds, size and attributes of loops to
unroll with some tuning done.  The peeling preferences may need
some tuning as well as the initial support looks much like what
other architectures utilize.

Reviewed By: craig.topper

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




More information about the All-commits mailing list