[all-commits] [llvm/llvm-project] 27b608: [RISCV] Increase default tail duplication threshol...

Pengcheng Wang via All-commits all-commits at lists.llvm.org
Wed Jul 31 21:24:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27b608055f8e86e2decea519e6dc1ab6aff4824e
      https://github.com/llvm/llvm-project/commit/27b608055f8e86e2decea519e6dc1ab6aff4824e
  Author: Pengcheng Wang <wangpengcheng.pp at bytedance.com>
  Date:   2024-08-01 (Thu, 01 Aug 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfo.h
    M llvm/lib/Target/RISCV/RISCVProcessors.td
    M llvm/lib/Target/RISCV/RISCVSubtarget.h
    A llvm/test/CodeGen/RISCV/riscv-tail-dup-size.ll

  Log Message:
  -----------
  [RISCV] Increase default tail duplication threshold to 6 at -O3 (#98873)

This is just like AArch64.

Changing the threshold to 6 will increase the code size, but will
also decrease unconditional branches. CPUs with wide fetch/issue units
can benefit from it.

The value 6 may be debatable, we can set it to `SchedModel.IssueWidth`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list