[llvm] [msan] Improve packed multiply-add instrumentation (PR #152941)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 10 17:26:36 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/Instrumentation/MemorySanitizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index 340301867..802fde9f8 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -3858,8 +3858,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
Value *S1S2 = IRB.CreateOr(S1, S2);
- // We allow the special case of multiplying where multiplying an uninitialized
- // element by zero results in an initialized element.
+ // We allow the special case of multiplying where multiplying an
+ // uninitialized element by zero results in an initialized element.
Value *Zero = Constant::getNullValue(V1->getType());
Value *V1NotZero = IRB.CreateICmpNE(V1, Zero);
Value *V2NotZero = IRB.CreateICmpNE(V2, Zero);
``````````
</details>
https://github.com/llvm/llvm-project/pull/152941
More information about the llvm-commits
mailing list