[llvm] Decompose gep variable upstream (PR #69152)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 16 00:44:03 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 5c0931727eb045c2ed2828d070eb16d4ac87b933 b649f5912c74d6584d704744f3da571e90d19d8a -- llvm/include/llvm/Analysis/MemoryLocation.h llvm/lib/Analysis/BasicAliasAnalysis.cpp llvm/lib/Analysis/MemoryDependenceAnalysis.cpp llvm/lib/CodeGen/StackProtector.cpp llvm/lib/Transforms/IPO/AttributorAttributes.cpp llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
index 5e00761b6b23..e6a21ec1378b 100644
--- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp
@@ -373,7 +373,8 @@ static bool canSkipClobberingStore(const StoreInst *SI,
return false;
if (MemoryLocation::get(SI).Size != MemLoc.Size)
return false;
- if (std::min(MemLocAlign, SI->getAlign()).value() < MemLoc.Size.getUintValue())
+ if (std::min(MemLocAlign, SI->getAlign()).value() <
+ MemLoc.Size.getUintValue())
return false;
auto *LI = dyn_cast<LoadInst>(SI->getValueOperand());
``````````
</details>
https://github.com/llvm/llvm-project/pull/69152
More information about the llvm-commits
mailing list