@@ -2997,8 +2997,9 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
2997
2997
// / fine).
2998
2998
// /
2999
2999
// / Caller guarantees that this intrinsic does not access memory.
3000
- bool maybeHandleSimpleNomemIntrinsic (IntrinsicInst &I,
3001
- unsigned int trailingFlags) {
3000
+ [[maybe_unused]] bool
3001
+ maybeHandleSimpleNomemIntrinsic (IntrinsicInst &I,
3002
+ unsigned int trailingFlags) {
3002
3003
Type *RetTy = I.getType ();
3003
3004
if (!(RetTy->isIntOrIntVectorTy () || RetTy->isFPOrFPVectorTy ()))
3004
3005
return false ;
@@ -3049,7 +3050,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
3049
3050
}
3050
3051
3051
3052
if (I.doesNotAccessMemory ())
3052
- if (maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags */ 0 ))
3053
+ if (maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags= */ 0 ))
3053
3054
return true ;
3054
3055
3055
3056
// FIXME: detect and handle SSE maskstore/maskload?
@@ -4690,6 +4691,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
4690
4691
case Intrinsic::x86_avx2_maskload_d_256:
4691
4692
case Intrinsic::x86_avx2_maskload_q_256: {
4692
4693
handleAVXMaskedLoad (I);
4694
+ break ;
4695
+ }
4693
4696
4694
4697
// Packed
4695
4698
case Intrinsic::x86_avx512_min_ps_512:
@@ -4699,9 +4702,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
4699
4702
// These AVX512 variants contain the rounding mode as a trailing flag.
4700
4703
// Earlier variants do not have a trailing flag and are already handled
4701
4704
// by maybeHandleSimpleNomemIntrinsic(I, 0) via handleUnknownIntrinsic.
4702
- bool success = maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags */ 1 );
4703
- (void )success;
4704
- assert (success);
4705
+ bool Success = maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags=*/ 1 );
4706
+ assert (Success);
4705
4707
break ;
4706
4708
}
4707
4709
0 commit comments