@@ -666,7 +666,6 @@ bool LoopVectorizationLegality::canVectorizeOuterLoop() {
666
666
// Check whether we are able to set up outer loop induction.
667
667
if (!setupOuterLoopInductions ()) {
668
668
reportVectorizationFailure (" Unsupported outer loop Phi(s)" ,
669
- " Unsupported outer loop Phi(s)" ,
670
669
" UnsupportedPhi" , ORE, TheLoop);
671
670
if (DoExtraAnalysis)
672
671
Result = false ;
@@ -962,7 +961,6 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
962
961
Type *T = ST->getValueOperand ()->getType ();
963
962
if (!VectorType::isValidElementType (T)) {
964
963
reportVectorizationFailure (" Store instruction cannot be vectorized" ,
965
- " store instruction cannot be vectorized" ,
966
964
" CantVectorizeStore" , ORE, TheLoop, ST);
967
965
return false ;
968
966
}
@@ -975,7 +973,6 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
975
973
assert (VecTy && " did not find vectorized version of stored type" );
976
974
if (!TTI->isLegalNTStore (VecTy, ST->getAlign ())) {
977
975
reportVectorizationFailure (
978
- " nontemporal store instruction cannot be vectorized" ,
979
976
" nontemporal store instruction cannot be vectorized" ,
980
977
" CantVectorizeNontemporalStore" , ORE, TheLoop, ST);
981
978
return false ;
@@ -990,7 +987,6 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
990
987
assert (VecTy && " did not find vectorized version of load type" );
991
988
if (!TTI->isLegalNTLoad (VecTy, LD->getAlign ())) {
992
989
reportVectorizationFailure (
993
- " nontemporal load instruction cannot be vectorized" ,
994
990
" nontemporal load instruction cannot be vectorized" ,
995
991
" CantVectorizeNontemporalLoad" , ORE, TheLoop, LD);
996
992
return false ;
@@ -1020,7 +1016,6 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
1020
1016
continue ;
1021
1017
}
1022
1018
reportVectorizationFailure (" Value cannot be used outside the loop" ,
1023
- " value cannot be used outside the loop" ,
1024
1019
" ValueUsedOutsideLoop" , ORE, TheLoop, &I);
1025
1020
return false ;
1026
1021
}
@@ -1442,9 +1437,7 @@ bool LoopVectorizationLegality::blockCanBePredicated(
1442
1437
bool LoopVectorizationLegality::canVectorizeWithIfConvert () {
1443
1438
if (!EnableIfConversion) {
1444
1439
reportVectorizationFailure (" If-conversion is disabled" ,
1445
- " if-conversion is disabled" ,
1446
- " IfConversionDisabled" ,
1447
- ORE, TheLoop);
1440
+ " IfConversionDisabled" , ORE, TheLoop);
1448
1441
return false ;
1449
1442
}
1450
1443
@@ -1493,14 +1486,12 @@ bool LoopVectorizationLegality::canVectorizeWithIfConvert() {
1493
1486
if (isa<SwitchInst>(BB->getTerminator ())) {
1494
1487
if (TheLoop->isLoopExiting (BB)) {
1495
1488
reportVectorizationFailure (" Loop contains an unsupported switch" ,
1496
- " loop contains an unsupported switch" ,
1497
1489
" LoopContainsUnsupportedSwitch" , ORE,
1498
1490
TheLoop, BB->getTerminator ());
1499
1491
return false ;
1500
1492
}
1501
1493
} else if (!isa<BranchInst>(BB->getTerminator ())) {
1502
1494
reportVectorizationFailure (" Loop contains an unsupported terminator" ,
1503
- " loop contains an unsupported terminator" ,
1504
1495
" LoopContainsUnsupportedTerminator" , ORE,
1505
1496
TheLoop, BB->getTerminator ());
1506
1497
return false ;
@@ -1510,8 +1501,7 @@ bool LoopVectorizationLegality::canVectorizeWithIfConvert() {
1510
1501
if (blockNeedsPredication (BB) &&
1511
1502
!blockCanBePredicated (BB, SafePointers, MaskedOp)) {
1512
1503
reportVectorizationFailure (
1513
- " Control flow cannot be substituted for a select" ,
1514
- " control flow cannot be substituted for a select" , " NoCFGForSelect" ,
1504
+ " Control flow cannot be substituted for a select" , " NoCFGForSelect" ,
1515
1505
ORE, TheLoop, BB->getTerminator ());
1516
1506
return false ;
1517
1507
}
@@ -1700,8 +1690,6 @@ bool LoopVectorizationLegality::isVectorizableEarlyExitLoop() {
1700
1690
return false ;
1701
1691
} else if (!IsSafeOperation (&I)) {
1702
1692
reportVectorizationFailure (" Early exit loop contains operations that "
1703
- " cannot be speculatively executed" ,
1704
- " Early exit loop contains operations that "
1705
1693
" cannot be speculatively executed" ,
1706
1694
" UnsafeOperationsEarlyExitLoop" , ORE,
1707
1695
TheLoop);
@@ -1764,9 +1752,7 @@ bool LoopVectorizationLegality::canVectorize(bool UseVPlanNativePath) {
1764
1752
1765
1753
if (!canVectorizeOuterLoop ()) {
1766
1754
reportVectorizationFailure (" Unsupported outer loop" ,
1767
- " unsupported outer loop" ,
1768
- " UnsupportedOuterLoop" ,
1769
- ORE, TheLoop);
1755
+ " UnsupportedOuterLoop" , ORE, TheLoop);
1770
1756
// TODO: Implement DoExtraAnalysis when subsequent legal checks support
1771
1757
// outer loops.
1772
1758
return false ;
0 commit comments