[llvm] [LLVM][CanonicalizeFreezeInLoops] fix duplicate removal (PR #74714)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 05:27:45 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 6a1badfed2dcd438d94a35cc4ab3b38c7cc06208 903262f32a67d7933ff7d240f6f3793b8a6609a3 -- 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 af9dad143e..ff1eb17e0c 100644
--- a/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
+++ b/llvm/lib/Transforms/Utils/CanonicalizeFreezeInLoops.cpp
@@ -159,9 +159,9 @@ bool CanonicalizeFreezeInLoopsImpl::run() {
           Exist = (FI_cand == FI) ? true : Exist;
         }
         if (!Exist) {
-        LLVM_DEBUG(dbgs() << "canonfr: found: " << *FI << "\n");
-        Info.FI = FI;
-        Candidates.push_back(Info);
+          LLVM_DEBUG(dbgs() << "canonfr: found: " << *FI << "\n");
+          Info.FI = FI;
+          Candidates.push_back(Info);
         }
       }
     };

``````````

</details>


https://github.com/llvm/llvm-project/pull/74714


More information about the llvm-commits mailing list