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 | acc748b2b572ab3106665fcb16ed669b29c213a6 (patch) | |
tree | b26fd0e2d1af2043bce40f5aab8e7ec55d47806d /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | ff421c97e194e45390756a6fd50fe309f73e909b (diff) | |
download | bcm5719-llvm-acc748b2b572ab3106665fcb16ed669b29c213a6.tar.gz bcm5719-llvm-acc748b2b572ab3106665fcb16ed669b29c213a6.zip |
Fix sign compare warning. Patch by Mahesha HS.
llvm-svn: 167282
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index c9871e25f12..892808760f7 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/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; |