diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-11-02 05:24:00 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-11-02 05:24:00 +0000 |
commit | 6e48f0307758096d06d0e87875294c76df81dec1 (patch) | |
tree | 69a6e2f17cf4ec850bc28d90f9af3b53f7a0190a /lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 875618f2459f7e3b4234ee29a4e3ed0d48e3ab92 (diff) |
Fix sign compare warning. Patch by Mahesha HS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | lib/Transforms/Vectorize/LoopVectorize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index c9871e25f1..892808760f 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -76,7 +76,7 @@ VectorizationFactor("force-vector-width", cl::init(0), cl::Hidden, cl::desc("Set the default vectorization width. Zero is autoselect.")); /// We don't vectorize loops with a known constant trip count below this number. -const int TinyTripCountThreshold = 16; +const unsigned TinyTripCountThreshold = 16; namespace { @@ -1161,7 +1161,7 @@ bool LoopVectorizationLegality::canVectorize() { // Do not loop-vectorize loops with a tiny trip count. unsigned TC = SE->getSmallConstantTripCount(TheLoop, BB); - if (TC > 0 && TC < TinyTripCountThreshold) { + if (TC > 0u && TC < TinyTripCountThreshold) { DEBUG(dbgs() << "LV: Found a loop with a very small trip count. " << "This loop is not worth vectorizing.\n"); return false; |