aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llc
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-04 23:05:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-04 23:05:19 +0000
commit712e80e188c306125e32e46e9ed5db9dfc2f7cc9 (patch)
tree019bd7b1cde78e95910b61c87ae3e6eb69cf9d0d /tools/llc
parentb0030ddca469b3372630b0c01c21245ef0027aa0 (diff)
downloadexternal_llvm-712e80e188c306125e32e46e9ed5db9dfc2f7cc9.zip
external_llvm-712e80e188c306125e32e46e9ed5db9dfc2f7cc9.tar.gz
external_llvm-712e80e188c306125e32e46e9ed5db9dfc2f7cc9.tar.bz2
Default llc / lli optimization to "Default", which corresponds to -O1 / -O2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index e5560da..4808f0e 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -55,10 +55,11 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"));
static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
-// Determine optimization level. Level -O0 is equivalent to "fast" code gen.
+// Determine optimization level.
static cl::opt<char>
OptLevel("O",
- cl::desc("Optimization level. [-O0, -O1, -O2, or -O3]"),
+ cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] "
+ "(default = '-O2')"),
cl::Prefix,
cl::ZeroOrMore,
cl::init(' '));
@@ -253,8 +254,7 @@ int main(int argc, char **argv) {
raw_ostream *Out = GetOutputStream(argv[0]);
if (Out == 0) return 1;
- CodeGenOpt::Level OLvl = CodeGenOpt::Aggressive;
-
+ CodeGenOpt::Level OLvl = CodeGenOpt::Default;
switch (OptLevel) {
default:
std::cerr << argv[0] << ": invalid optimization level.\n";