[llvm] [AMDGPU][TTI] Threshold bonus to loops whose unrolling makes nested loops unrollable (PR #114579)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 06:26:21 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 95c2d798148f12565dd4c9ddc753d196e47f230f 30a482719ea3156263e66f1aefe62afa8489abd7 --extensions cpp -- llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
index a4bcc2d9e7..df2deafe23 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
@@ -83,8 +83,7 @@ static cl::opt<unsigned>
UnrollThreshold("unroll-threshold", cl::Hidden,
cl::desc("The cost threshold for loop unrolling"));
-static cl::opt<unsigned>
- UnrollOptSizeThreshold(
+static cl::opt<unsigned> UnrollOptSizeThreshold(
"unroll-optsize-threshold", cl::init(0), cl::Hidden,
cl::desc("The cost threshold for loop unrolling when optimizing for "
"size"));
@@ -152,8 +151,8 @@ static cl::opt<unsigned> FlatLoopTripCountThreshold(
"threshold, the loop is considered as flat and will be less "
"aggressively unrolled."));
-static cl::opt<bool> UnrollUnrollRemainder(
- "unroll-remainder", cl::Hidden,
+static cl::opt<bool>
+ UnrollUnrollRemainder("unroll-remainder", cl::Hidden,
cl::desc("Allow the loop remainder to be unrolled."));
// This option isn't ever intended to be enabled, it serves to allow
``````````
</details>
https://github.com/llvm/llvm-project/pull/114579
More information about the llvm-commits
mailing list