[llvm] r352241 - Revert rL352238.
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 25 13:12:09 PST 2019
Author: asbirlea
Date: Fri Jan 25 13:12:08 2019
New Revision: 352241
URL: http://llvm.org/viewvc/llvm-project?rev=352241&view=rev
Log:
Revert rL352238.
Modified:
llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp?rev=352241&r1=352240&r2=352241&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp Fri Jan 25 13:12:08 2019
@@ -51,7 +51,7 @@ static void warnAboutLeftoverTransformat
Optional<int> 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 warnAboutLeftoverTransformat
<< "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",
More information about the llvm-commits
mailing list