summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-27 19:56:27 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-27 21:15:34 +0200
commitde18eba2c4ae9ee380a8b4fc5da69b570ba50b75 (patch)
tree3acca74d989a187cb0e54691adde4509e981460b /ir/be/benode.c
parentbaf5b8321facde0700ef0681d0b666fa693d7375 (diff)
be: Only exclude ANY and T nodes from having their mode dumped.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index f18eb7e..9951a5c 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -553,10 +553,12 @@ static void dump_node(FILE *f, const ir_node *irn, dump_reason_t reason)
case dump_node_opcode_txt:
fputs(get_irn_opname(irn), f);
break;
- case dump_node_mode_txt:
- if (be_is_Copy(irn) || be_is_CopyKeep(irn))
- fprintf(f, "%s", get_mode_name(get_irn_mode(irn)));
+ case dump_node_mode_txt: {
+ ir_mode *const mode = get_irn_mode(irn);
+ if (mode != mode_ANY && mode != mode_T)
+ fprintf(f, "%s", get_mode_name(mode));
break;
+ }
case dump_node_nodeattr_txt:
if (be_is_IncSP(irn)) {
const be_incsp_attr_t *attr