[llvm] [OpenMP] Add optimization to remove the RPC client (PR #70683)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 11:45:07 PDT 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 ad810519d9124c78589f939abab427a02db1ccc0 6f059d5e8bdcfa0a9294535d899d88ddbe7a1268 -- llvm/lib/Transforms/IPO/OpenMPOpt.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index 9203a560b0f4..2ccf45d73200 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -1527,7 +1527,7 @@ private:
 
       // Check to see if the only user of the RPC client is the external handle.
       GlobalVariable *Client = dyn_cast<GlobalVariable>(C->stripPointerCasts());
-      if (!Client || Client->getNumUses() > 1 || 
+      if (!Client || Client->getNumUses() > 1 ||
           Client->user_back() != GV->getInitializer())
         return false;
 

``````````

</details>


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


More information about the llvm-commits mailing list