[llvm] [BasicAA] Check for Overflow using vscale_range (PR #81144)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 07:33:45 PST 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 3e33b6f5de6905c98395a77b41d474b87ef9e677 05624b3aa9a84bccae46f5b0303b16b1fe6323db -- llvm/lib/Analysis/BasicAliasAnalysis.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index 38dba376ae..0c762317ee 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -1193,8 +1193,8 @@ AliasResult BasicAAResult::aliasGEP(
 
     if (!Overflows) {
       // Note that we do not check that the typesize is scalable, as vscale >= 1
-      // so noalias still holds so long as the dependency distance is at least as
-      // big as the typesize.
+      // so noalias still holds so long as the dependency distance is at least
+      // as big as the typesize.
       if (VLeftSize.hasValue() &&
           Scale.uge(VLeftSize.getValue().getKnownMinValue()))
         return AliasResult::NoAlias;

``````````

</details>


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


More information about the llvm-commits mailing list