[llvm] [ArgPromotion] Perform alias analysis on actual arguments of Calls (PR #106216)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 11:48:47 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 2e9b3316ee8b4339e2f023173db780ea09c44a88 6b9b01890f86389212cbe762e43bf896215dd9dd --extensions cpp -- llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index d3690ada28..aaa9792c00 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -746,7 +746,6 @@ static bool findArgParts(Argument *Arg, const DataLayout &DL, AAResults &AAR,
// Okay, now we know that the argument is only used by load instructions, and
// it is safe to unconditionally perform all of them.
-
// If we can determine that no call to the Function modifies the memory region
// accessed through Arg, through alias analysis using actual arguments in the
// callers, we know that it is guaranteed to be safe to promote the argument.
``````````
</details>
https://github.com/llvm/llvm-project/pull/106216
More information about the llvm-commits
mailing list