[llvm] [msan] Implement shadow propagation for _mm_dp_pd, _mm_dp_ps, _mm256_dp_ps (PR #94875)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 13:50:44 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 d3c0ed387c478dc07daac575b2ec1216b8044b56 b4ae901cf02ee64778772dc49a16aef7a40e1638 -- 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 c88b4e4a96..6cd9b686a2 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -3345,8 +3345,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
if (Width == 8) {
// First 4 elements of shadow are already calculated. `makeDppShadow`
// operats on 32 bit masks, so we can just shift masks, and repeat.
- SI1 = IRB.CreateOr(SI1,
- findDppPoisonedOutput(IRB, S, SrcMask << 4, DstMask << 4));
+ SI1 = IRB.CreateOr(
+ SI1, findDppPoisonedOutput(IRB, S, SrcMask << 4, DstMask << 4));
}
// Extend to real size of shadow, poisoning either all or none bits of an
// element.
``````````
</details>
https://github.com/llvm/llvm-project/pull/94875
More information about the llvm-commits
mailing list