projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
when we can do it for tuples, we can do it for Ids too
[libfirm]
/
ir
/
arch
/
archop.c
diff --git
a/ir/arch/archop.c
b/ir/arch/archop.c
index
1264df9
..
a23c467
100644
(file)
--- a/
ir/arch/archop.c
+++ b/
ir/arch/archop.c
@@
-41,6
+41,7
@@
#include "iropt_dbg.h"
#include "archop.h"
#include "irop.h"
#include "iropt_dbg.h"
#include "archop.h"
#include "irop.h"
+#include "error.h"
/* when we need verifying */
#ifdef NDEBUG
/* when we need verifying */
#ifdef NDEBUG
@@
-69,8
+70,7
@@
new_rd_Min(dbg_info *db, ir_graph *irg, ir_node *block,
ir_node *res;
if (! op_Min) {
ir_node *res;
if (! op_Min) {
- assert(0);
- return NULL;
+ panic("cannot create Min node, not allowed");
}
in[0] = op1;
}
in[0] = op1;
@@
-92,8
+92,7
@@
new_rd_Max(dbg_info *db, ir_graph *irg, ir_node *block,
ir_node *res;
if (! op_Max) {
ir_node *res;
if (! op_Max) {
- assert(0);
- return NULL;
+ panic("cannot create Max node, not allowed");
}
in[0] = op1;
}
in[0] = op1;
@@
-240,7
+239,7
@@
ir_node *arch_transform_node_Mux(ir_node *n)
return n;
cmp = get_Proj_pred(proj);
return n;
cmp = get_Proj_pred(proj);
- if (
get_irn_op(cmp) == op_Cmp
) {
+ if (
is_Cmp(cmp)
) {
ir_node *a = get_Cmp_left(cmp);
ir_node *b = get_Cmp_right(cmp);
ir_node *t = get_Mux_true(n);
ir_node *a = get_Cmp_left(cmp);
ir_node *b = get_Cmp_right(cmp);
ir_node *t = get_Mux_true(n);