[llvm] [msan] Convert vector shadow to scalar before zext (PR #96722)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 14:11:28 PDT 2024


================
@@ -1398,6 +1399,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
     if (instrumentWithCalls(ConvertedShadow) &&
         SizeIndex < kNumberOfAccessSizes && !MS.CompileKernel) {
       FunctionCallee Fn = MS.MaybeWarningFn[SizeIndex];
+      // ZExt cannot convert between vector and scalar
+      ConvertedShadow = convertShadowToScalar(ConvertedShadow, IRB);
----------------
vitalybuka wrote:

we need IR test

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


More information about the llvm-commits mailing list