]> granicus.if.org Git - llvm/commitdiff
Silencing a -Wsign-compare warning (all uses of this constant are within unsigned...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 22 Jan 2015 13:57:41 +0000 (13:57 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 22 Jan 2015 13:57:41 +0000 (13:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226826 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index 8962fbffc85de5e083ca1fa3e58a850057745534..fb1f64ba14ab39781afc30f260563989a8c96d56 100644 (file)
@@ -82,7 +82,7 @@ static const unsigned AliasedCheckLimit = 10;
 // Another limit for the alias checks: The maximum distance between load/store
 // instructions where alias checks are done.
 // This limit is useful for very large basic blocks.
-static const int MaxMemDepDistance = 160;
+static const unsigned MaxMemDepDistance = 160;
 
 /// \returns the parent basic block if all of the instructions in \p VL
 /// are in the same block or null otherwise.