Changes: Christian Thalinger
Edwin Steiner
- $Id: lsra.c 4710 2006-03-30 10:23:11Z twisti $
+ $Id: lsra.c 4796 2006-04-20 18:04:18Z edwin $
*/
s4 t;
methoddesc *md = m->parseddesc;
+#if defined(ENABLE_LOOP)
/* Loop optimization "destroys" the basicblock array */
/* TODO: work with the basicblock list */
if (opt_loops) {
log_text("lsra not possible with loop optimization\n");
assert(0);
}
+#endif /* defined(ENABLE_LOOP) */
/* Setup LSRA Data structures */
OPT_SIGNATURE,
OPT_SHOW,
OPT_ALL,
- OPT_OLOOP,
- OPT_INLINING,
OPT_VERBOSETC,
OPT_NOVERIFY,
/* optimization options */
+#if defined(ENABLE_LOOP)
+ OPT_OLOOP,
+#endif
+
#if defined(ENABLE_IFCONV)
OPT_IFCONV,
#endif
OPT_LSRA,
#endif
+#if defined(ENABLE_INLINING)
+ OPT_INLINING,
+#endif
+
#if defined(ENABLE_INTRP)
/* interpreter options */
{ "eager", false, OPT_EAGER },
{ "sig", true, OPT_SIGNATURE },
{ "all", false, OPT_ALL },
+#if defined(ENABLE_LOOP)
{ "oloop", false, OPT_OLOOP },
+#endif
#if defined(ENABLE_IFCONV)
{ "ifconv", false, OPT_IFCONV },
#endif
/* keep these at the end of the list */
+#if defined(ENABLE_INLINING)
{ "i", true, OPT_INLINING },
+#endif
{ "m", true, OPT_METHOD },
{ "s", true, OPT_SHOW },
puts(" -log logfile specify a name for the logfile");
puts(" -c(heck)b(ounds) don't check array bounds");
puts(" s(ync) don't check for synchronization");
- puts(" -oloop optimize array accesses in loops");
+#if defined(ENABLE_LOOP)
+ puts(" -oloop optimize array accesses in loops");
+#endif
puts(" -l don't start the class after loading");
puts(" -eager perform eager class loading and linking");
puts(" -all compile all methods, no execution");
puts(" m(ethods) show class fields and methods");
puts(" n(ative) show disassembled native stubs");
puts(" u(tf) show the utf - hash");
+#if defined(ENABLE_INLINING)
puts(" -i n(line) activate inlining");
puts(" v(irtual) inline virtual methods (uses/turns rt option on)");
puts(" e(exception) inline methods with exceptions");
puts(" p(aramopt) optimize argument renaming");
puts(" o(utsiders) inline methods of foreign classes");
+#endif /* defined(ENABLE_INLINING) */
#if defined(ENABLE_IFCONV)
puts(" -ifconv use if-conversion");
#endif
}
break;
+#if defined(ENABLE_LOOP)
case OPT_OLOOP:
opt_loops = true;
break;
+#endif
+#if defined(ENABLE_INLINING)
case OPT_INLINING:
for (j = 0; j < strlen(opt_arg); j++) {
switch (opt_arg[j]) {
}
}
break;
+#endif /* defined(ENABLE_INLINING) */
#if defined(ENABLE_IFCONV)
case OPT_IFCONV: