From: Alina Sbirlea Date: Fri, 25 Jan 2019 21:12:08 +0000 (+0000) Subject: Revert rL352238. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed5015213c5d02d51ff1b39960abf47c37a244d7;p=llvm Revert rL352238. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352241 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/WarnMissedTransforms.cpp b/lib/Transforms/Scalar/WarnMissedTransforms.cpp index b6b31cf68e5..73687e1e5df 100644 --- a/lib/Transforms/Scalar/WarnMissedTransforms.cpp +++ b/lib/Transforms/Scalar/WarnMissedTransforms.cpp @@ -51,7 +51,7 @@ static void warnAboutLeftoverTransformations(Loop *L, Optional InterleaveCount = getOptionalIntLoopAttribute(L, "llvm.loop.interleave.count"); - if (VectorizeWidth.getValueOr(1) != 1) + if (VectorizeWidth.getValueOr(0) != 1) ORE->emit( DiagnosticInfoOptimizationFailure(DEBUG_TYPE, "FailedRequestedVectorization", @@ -59,7 +59,7 @@ static void warnAboutLeftoverTransformations(Loop *L, << "loop not vectorized: the optimizer was unable to perform the " "requested transformation; the transformation might be disabled " "or specified as part of an unsupported transformation ordering"); - else if (InterleaveCount.getValueOr(1) != 1) + else if (InterleaveCount.getValueOr(0) != 1) ORE->emit( DiagnosticInfoOptimizationFailure(DEBUG_TYPE, "FailedRequestedInterleaving",