#include <string.h>
#include <stdio.h>
#include <math.h>
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
#include <mono/metadata/debug-helpers.h>
#include <mono/metadata/opcodes.h>
#include "config.h"
-#ifndef DISABLE_SSA
-#include "inssel.h"
-
#include "ssapre.h"
+/* Disable for now to save space since it is not yet ported to linear IR */
+#if 0
+
+#ifndef DISABLE_SSA
+
/* Logging conditions */
#define DUMP_LEVEL (4)
#define TRACE_LEVEL (3)
}
#if (MONO_APPLY_SSAPRE_TO_SINGLE_EXPRESSION)
-static char *mono_ssapre_expression_name = NULL;
+static char *mono_ssapre_expression_name;
static gboolean
check_ssapre_expression_name (MonoSsapreWorkArea *area, MonoSsapreExpressionDescription *expression_description) {
if (area->expression_is_handled_father) {
return TRUE;
}
if (mono_ssapre_expression_name == NULL) {
- mono_ssapre_expression_name = getenv ("MONO_SSAPRE_EXPRESSION_NAME");
+ mono_ssapre_expression_name = g_getenv ("MONO_SSAPRE_EXPRESSION_NAME");
}
if (mono_ssapre_expression_name != NULL) {
GString *expression_name = g_string_new_len ("", 256);
mono_ssapre_method_name = NULL;
static gboolean check_ssapre_method_name (MonoCompile *cfg) {
if (mono_ssapre_method_name == NULL) {
- mono_ssapre_method_name = getenv ("MONO_SSAPRE_METHOD_NAME");
+ mono_ssapre_method_name = g_getenv ("MONO_SSAPRE_METHOD_NAME");
}
if (mono_ssapre_method_name != NULL) {
char *method_name = mono_method_full_name (cfg->method, TRUE);
#endif /* DISABLE_SSA */
+#else /* 0 */
+
+void
+mono_perform_ssapre (MonoCompile *cfg)
+{
+}
+
+#endif /* 0 */