@@ -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?
@@ -4621,6 +4622,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
4621
4622
case Intrinsic::x86_avx2_maskload_d_256:
4622
4623
case Intrinsic::x86_avx2_maskload_q_256: {
4623
4624
handleAVXMaskedLoad (I);
4625
+ break ;
4626
+ }
4624
4627
4625
4628
// Packed
4626
4629
case Intrinsic::x86_avx512_min_ps_512:
@@ -4630,9 +4633,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
4630
4633
// These AVX512 variants contain the rounding mode as a trailing flag.
4631
4634
// Earlier variants do not have a trailing flag and are already handled
4632
4635
// by maybeHandleSimpleNomemIntrinsic(I, 0) via handleUnknownIntrinsic.
4633
- bool success = maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags */ 1 );
4634
- (void )success;
4635
- assert (success);
4636
+ bool Success = maybeHandleSimpleNomemIntrinsic (I, /* trailingFlags=*/ 1 );
4637
+ assert (Success);
4636
4638
break ;
4637
4639
}
4638
4640
0 commit comments