[llvm] [LSR] If there still has some uses of the value, do not set the value (PR #84777)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 09:05:27 PDT 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 d8d2dea7fc6f452ac6a24948fe3ff99920f81c99 f30c1e0e0b492b81413080fd100807f4fe51d8a7 -- llvm/lib/Transforms/Utils/Local.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 2f97de6bb0..e2615dacc0 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -590,7 +590,7 @@ void llvm::RecursivelyDeleteTriviallyDeadInstructions(
       Value *OpV = OpU.get();
       if (!OpV->use_empty())
         continue;
-      
+
       OpU.set(nullptr);
 
       // If the operand is an instruction that became dead as we nulled out the

``````````

</details>


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


More information about the llvm-commits mailing list