[PATCH] D83916: Fixed warning about signed/unsigned comparison

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 11:04:02 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGefb504026293: Fixed warning about signed/unsigned comparison (authored by rampitec).

Repository:
  rG LLVM Github Monorepo

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.278852.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200717/fb23bb32/attachment.bin>


More information about the llvm-commits mailing list