[llvm] [LoopVersioningLICM] Only mark pointers with generated checks as noalias (PR #135168)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 10 05:06:02 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp b/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
index 74b424655..fc3849dac 100644
--- a/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp
@@ -531,7 +531,7 @@ void LoopVersioningLICM::setNoAliasToLoop(Loop *VerLoop) {
// We can only add noalias to pointers that we've inserted checks for
Value *V = getLoadStorePointerOperand(&Inst);
if (!V || !any_of(Pointers, [&](auto &P) { return P.PointerValue == V; }))
- continue;
+ continue;
// Set no-alias for current instruction.
Inst.setMetadata(
LLVMContext::MD_noalias,
``````````
</details>
https://github.com/llvm/llvm-project/pull/135168
More information about the llvm-commits
mailing list