@@ -370,7 +370,7 @@ TEST_F(VPIntrinsicTest, IntrinsicIDRoundTrip) {
370
370
// / Check that going from intrinsic to VP intrinsic and back results in the same
371
371
// / intrinsic.
372
372
TEST_F (VPIntrinsicTest, IntrinsicToVPRoundTrip) {
373
- unsigned FullTripCounts = 0 ;
373
+ bool IsFullTrip = false ;
374
374
Intrinsic::ID IntrinsicID = Intrinsic::not_intrinsic + 1 ;
375
375
for (; IntrinsicID < Intrinsic::num_intrinsics; IntrinsicID++) {
376
376
Intrinsic::ID VPID = VPIntrinsic::getForIntrinsic (IntrinsicID);
@@ -391,9 +391,9 @@ TEST_F(VPIntrinsicTest, IntrinsicToVPRoundTrip) {
391
391
continue ;
392
392
393
393
ASSERT_EQ (*RoundTripIntrinsicID, IntrinsicID);
394
- ++FullTripCounts ;
394
+ IsFullTrip = true ;
395
395
}
396
- ASSERT_NE (FullTripCounts, 0u );
396
+ ASSERT_TRUE (IsFullTrip );
397
397
}
398
398
399
399
// / Check that going from VP intrinsic to equivalent non-predicated intrinsic
@@ -402,7 +402,7 @@ TEST_F(VPIntrinsicTest, VPToNonPredIntrinsicRoundTrip) {
402
402
std::unique_ptr<Module> M = createVPDeclarationModule ();
403
403
assert (M);
404
404
405
- unsigned FullTripCounts = 0 ;
405
+ bool IsFullTrip = false ;
406
406
for (const auto &VPDecl : *M) {
407
407
auto VPID = VPDecl.getIntrinsicID ();
408
408
std::optional<Intrinsic::ID> NonPredID =
@@ -415,9 +415,9 @@ TEST_F(VPIntrinsicTest, VPToNonPredIntrinsicRoundTrip) {
415
415
Intrinsic::ID RoundTripVPID = VPIntrinsic::getForIntrinsic (*NonPredID);
416
416
417
417
ASSERT_EQ (RoundTripVPID, VPID);
418
- ++FullTripCounts ;
418
+ IsFullTrip = true ;
419
419
}
420
- ASSERT_NE (FullTripCounts, 0u );
420
+ ASSERT_TRUE (IsFullTrip );
421
421
}
422
422
423
423
// / Check that VPIntrinsic::getDeclarationForParams works.
0 commit comments