[PATCH] D83916: Fixed warning about signed/unsigned comparison
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 10:53:03 PDT 2020
rampitec updated this revision to Diff 278848.
rampitec added a comment.
Changed to static_cast.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83916/new/
https://reviews.llvm.org/D83916
Files:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Index: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
===================================================================
--- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -7407,7 +7407,7 @@
while (SameTypeIt != E &&
(*SameTypeIt)->getType() == EltTy &&
- (SameTypeIt - IncIt) < MaxNumElts) {
+ static_cast<unsigned>(SameTypeIt - IncIt) < MaxNumElts) {
VisitedInstrs.insert(*SameTypeIt);
++SameTypeIt;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83916.278848.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200717/e2ed5a6a/attachment.bin>
More information about the llvm-commits
mailing list