[llvm] r203675 - Revive SizeOptLevel-explaining comments that were dropped in r203669
Eli Bendersky
eliben at google.com
Wed Mar 12 09:44:17 PDT 2014
Author: eliben
Date: Wed Mar 12 11:44:17 2014
New Revision: 203675
URL: http://llvm.org/viewvc/llvm-project?rev=203675&view=rev
Log:
Revive SizeOptLevel-explaining comments that were dropped in r203669
Modified:
llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp
Modified: llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp?rev=203675&r1=203674&r2=203675&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/InlineSimple.cpp Wed Mar 12 11:44:17 2014
@@ -60,9 +60,9 @@ static int computeThresholdFromOptLevels
unsigned SizeOptLevel) {
if (OptLevel > 2)
return 275;
- if (SizeOptLevel == 1)
+ if (SizeOptLevel == 1) // -Os
return 75;
- if (SizeOptLevel == 2)
+ if (SizeOptLevel == 2) // -Oz
return 25;
return 225;
}
More information about the llvm-commits
mailing list