[PATCH] D113798: Add loop unrolling and peeling preferences for RISCV

Zixuan Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 19 22:08:56 PST 2021


zixuan-wu added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp:179
+      ST->getTuneCPU().contains("sifive-7"))
+    UseDefaultPreferences = false;
+
----------------
How about getting UseDefaultPreferences flag from subtarget? And initialize the value in subtarget.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113798/new/

https://reviews.llvm.org/D113798



More information about the llvm-commits mailing list