[llvm] [CanonicalizeFreezeInLoops] fix duplicate removal (PR #74716)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 14 10:29:44 PST 2023
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 7bc6c4abe8e8d8ab70e02e4c2025a94dda01d908 92fd7e98ec68819269dbf9401f43170e7fa4d7c9 -- llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp b/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
index 0c7d648ce0..cd8c695466 100644
--- a/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
+++ b/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
@@ -30,8 +30,8 @@
#include "llvm/Transforms/Utils/CanonicalizeFreezeInLoops.h"
#include "llvm/ADT/DenseMapInfo.h"
-#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/SetVector.h"
#include "llvm/Analysis/IVDescriptors.h"
#include "llvm/Analysis/LoopAnalysisManager.h"
#include "llvm/Analysis/LoopInfo.h"
@@ -115,7 +115,8 @@ template <> struct DenseMapInfo<FrozenIndPHIInfo> {
static unsigned getHashValue(const FrozenIndPHIInfo &Val) {
return DenseMapInfo<FreezeInst *>::getHashValue(Val.FI);
};
- static bool isEqual(const FrozenIndPHIInfo &LHS, const FrozenIndPHIInfo &RHS) {
+ static bool isEqual(const FrozenIndPHIInfo &LHS,
+ const FrozenIndPHIInfo &RHS) {
return LHS.FI == RHS.FI;
};
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/74716
More information about the llvm-commits
mailing list