projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed mode parameter from Const and Const_type constructors (now derived from tarval)
[libfirm]
/
ir
/
opt
/
tailrec.c
diff --git
a/ir/opt/tailrec.c
b/ir/opt/tailrec.c
index
be13961
..
61ea98b
100644
(file)
--- a/
ir/opt/tailrec.c
+++ b/
ir/opt/tailrec.c
@@
-24,9
+24,7
@@
* @author Michael Beck
* @version $Id$
*/
* @author Michael Beck
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#include <string.h>
#include <assert.h>
#include <string.h>
#include <assert.h>
@@
-47,7
+45,6
@@
#include "irouts.h"
#include "irhooks.h"
#include "ircons_t.h"
#include "irouts.h"
#include "irhooks.h"
#include "ircons_t.h"
-#include "xmalloc.h"
DEBUG_ONLY(static firm_dbg_module_t *dbg);
DEBUG_ONLY(static firm_dbg_module_t *dbg);
@@
-307,9
+304,9
@@
static void do_opt_tail_rec(ir_graph *irg, tr_env *env) {
modes[i] = mode;
if (env->variants[i] == TR_ADD) {
modes[i] = mode;
if (env->variants[i] == TR_ADD) {
- set_value(i, new_Const(
mode,
get_mode_null(mode)));
+ set_value(i, new_Const(get_mode_null(mode)));
} else if (env->variants[i] == TR_MUL) {
} else if (env->variants[i] == TR_MUL) {
- set_value(i, new_Const(
mode,
get_mode_one(mode)));
+ set_value(i, new_Const(get_mode_one(mode)));
}
}
mature_immBlock(start_block);
}
}
mature_immBlock(start_block);