[PATCH] D57253: [WarnMissedTransforms] Set default to 1.
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 25 12:51:59 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL352238: [WarnMissedTransforms] Set default to 1. (authored by asbirlea, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57253/new/
https://reviews.llvm.org/D57253
Files:
llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp
Index: llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp
+++ llvm/trunk/lib/Transforms/Scalar/WarnMissedTransforms.cpp
@@ -51,7 +51,7 @@
Optional<int> InterleaveCount =
getOptionalIntLoopAttribute(L, "llvm.loop.interleave.count");
- if (VectorizeWidth.getValueOr(0) != 1)
+ if (VectorizeWidth.getValueOr(1) != 1)
ORE->emit(
DiagnosticInfoOptimizationFailure(DEBUG_TYPE,
"FailedRequestedVectorization",
@@ -59,7 +59,7 @@
<< "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(0) != 1)
+ else if (InterleaveCount.getValueOr(1) != 1)
ORE->emit(
DiagnosticInfoOptimizationFailure(DEBUG_TYPE,
"FailedRequestedInterleaving",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57253.183603.patch
Type: text/x-patch
Size: 1133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190125/79794111/attachment.bin>
More information about the llvm-commits
mailing list