[llvm] 34a076c - [RISCV][NFC] Don't set UnrollAndJamInnerLoopThreshold in getUnrollingPreferences (#118572)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 07:41:23 PST 2024


Author: Michael Maitland
Date: 2024-12-05T10:41:19-05:00
New Revision: 34a076c46fafe6bd5fee48426195d3d9e66b8482

URL: https://github.com/llvm/llvm-project/commit/34a076c46fafe6bd5fee48426195d3d9e66b8482
DIFF: https://github.com/llvm/llvm-project/commit/34a076c46fafe6bd5fee48426195d3d9e66b8482.diff

LOG: [RISCV][NFC] Don't set UnrollAndJamInnerLoopThreshold in getUnrollingPreferences (#118572)

This has no effect since its the default value used in
llvm::gatherUnrollingPreferences.

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index 918b901ddcb4d9..cbf8c57fde44d1 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
@@ -2253,7 +2253,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