Skip to content

Commit a34bcbf

Browse files
committed
Revert rL352238.
llvm-svn: 352241
1 parent d760910 commit a34bcbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/WarnMissedTransforms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ static void warnAboutLeftoverTransformations(Loop *L,
5151
Optional<int> InterleaveCount =
5252
getOptionalIntLoopAttribute(L, "llvm.loop.interleave.count");
5353

54-
if (VectorizeWidth.getValueOr(1) != 1)
54+
if (VectorizeWidth.getValueOr(0) != 1)
5555
ORE->emit(
5656
DiagnosticInfoOptimizationFailure(DEBUG_TYPE,
5757
"FailedRequestedVectorization",
5858
L->getStartLoc(), L->getHeader())
5959
<< "loop not vectorized: the optimizer was unable to perform the "
6060
"requested transformation; the transformation might be disabled "
6161
"or specified as part of an unsupported transformation ordering");
62-
else if (InterleaveCount.getValueOr(1) != 1)
62+
else if (InterleaveCount.getValueOr(0) != 1)
6363
ORE->emit(
6464
DiagnosticInfoOptimizationFailure(DEBUG_TYPE,
6565
"FailedRequestedInterleaving",

0 commit comments

Comments
 (0)