[llvm-commits] [llvm] r164219 - /llvm/trunk/include/llvm/Analysis/InlineCost.h
Benjamin Kramer
benny.kra at googlemail.com
Wed Sep 19 06:22:27 PDT 2012
Author: d0k
Date: Wed Sep 19 08:22:27 2012
New Revision: 164219
URL: http://llvm.org/viewvc/llvm-project?rev=164219&view=rev
Log:
InlineCost: Make TotalAllocaSizeRecursiveCaller unsigned to avoid sign-compare warnings.
It's a size, not a cost.
Modified:
llvm/trunk/include/llvm/Analysis/InlineCost.h
Modified: llvm/trunk/include/llvm/Analysis/InlineCost.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/InlineCost.h?rev=164219&r1=164218&r2=164219&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/InlineCost.h (original)
+++ llvm/trunk/include/llvm/Analysis/InlineCost.h Wed Sep 19 08:22:27 2012
@@ -38,7 +38,7 @@
const int NoreturnPenalty = 10000;
/// Do not inline functions which allocate this many bytes on the stack
/// when the caller is recursive.
- const int TotalAllocaSizeRecursiveCaller = 1024;
+ const unsigned TotalAllocaSizeRecursiveCaller = 1024;
}
/// \brief Represents the cost of inlining a function.
More information about the llvm-commits
mailing list