[all-commits] [llvm/llvm-project] 22b564: [RISCV] Add preferred function and loop alignment ...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Feb 17 08:44:14 PST 2023


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVSubtarget.h

  Log Message:
  -----------
  [RISCV] Add preferred function and loop alignment RISCVSubtarget. NFC

These seem like properties we will want to adjust based on -mtune.
Move them to subtarget like is done on ARM and AArch64. Don't add
any overrides yet.

Note there's a slight change here. We are now passing Align(1) for
preferred function alignment where we previously passed the minimum
alignment. As far as I could tell, it will be maxed with min when
it used so this should be ok.

Reviewed By: reames

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




More information about the All-commits mailing list