[all-commits] [llvm/llvm-project] 861489: [NFC][RISCV] Enable TuneNoDefaultUnroll feature to...
Zi Xuan Wu (Zeson) via All-commits
all-commits at lists.llvm.org
Wed May 18 21:22:09 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 861489af1b4947a107e501e39bafb4f2785456cb
https://github.com/llvm/llvm-project/commit/861489af1b4947a107e501e39bafb4f2785456cb
Author: Zi Xuan Wu (Zeson) <zixuan.wu at linux.alibaba.com>
Date: 2022-05-19 (Thu, 19 May 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCV.td
M llvm/lib/Target/RISCV/RISCVSubtarget.h
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
Log Message:
-----------
[NFC][RISCV] Enable TuneNoDefaultUnroll feature to control targets which use default unroll preference
In RISCVTargetTransformInfo, enumerating the processor family is not a good way to predict.
Because it needs to enumerate many subtarget family and is hard to update if add new subtarget.
Instead, create a feature to distinguish whether targets want to use default unroll preference or not.
Keep TuneSiFive7 because it's flag to indicate subtarget family, which may used in other place.
Differential Revision: https://reviews.llvm.org/D125741
More information about the All-commits
mailing list