File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -4197,14 +4197,11 @@ bool LoopVectorizationCostModel::isScalableVectorizationAllowed() {
4197
4197
return false ;
4198
4198
}
4199
4199
4200
- if (!Legal->isSafeForAnyVectorWidth ()) {
4201
- std::optional<unsigned > MaxVScale = getMaxVScale (*TheFunction, TTI);
4202
- if (!MaxVScale) {
4203
- reportVectorizationInfo (
4204
- " The target does not provide maximum vscale value." ,
4205
- " ScalableVFUnfeasible" , ORE, TheLoop);
4206
- return false ;
4207
- }
4200
+ if (!Legal->isSafeForAnyVectorWidth () && !getMaxVScale (*TheFunction, TTI)) {
4201
+ reportVectorizationInfo (" The target does not provide maximum vscale value "
4202
+ " for safe distance analysis." ,
4203
+ " ScalableVFUnfeasible" , ORE, TheLoop);
4204
+ return false ;
4208
4205
}
4209
4206
4210
4207
IsScalableVectorizationAllowed = true ;
You can’t perform that action at this time.
0 commit comments