[llvm] [RISCV][NFC] Don't set UnrollAndJamInnerLoopThreshold in getUnrollingPreferences (PR #118572)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 17:05:35 PST 2024
https://github.com/michaelmaitland created https://github.com/llvm/llvm-project/pull/118572
This has no effect since its the default value used in llvm::gatherUnrollingPreferences.
>From b756969333103278539a96e241cd9cbd740c6559 Mon Sep 17 00:00:00 2001
From: Michael Maitland <michaeltmaitland at gmail.com>
Date: Tue, 3 Dec 2024 17:03:37 -0800
Subject: [PATCH] [RISCV][NFC] Don't set UnrollAndJamInnerLoopThreshold in
getUnrollingPreferences
This has no effect since its the default value used in
llvm::gatherUnrollingPreferences.
---
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index aed476db1956fa..4e9d79d8dfd2a8 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
@@ -2242,7 +2242,6 @@ void RISCVTTIImpl::getUnrollingPreferences(Loop *L, ScalarEvolution &SE,
UP.Runtime = true;
UP.UnrollRemainder = true;
UP.UnrollAndJam = true;
- UP.UnrollAndJamInnerLoopThreshold = 60;
// Force unrolling small loops can be very useful because of the branch
// taken cost of the backedge.
More information about the llvm-commits
mailing list