Commit 1f3ce499 authored by yb9976's avatar yb9976
Browse files

Create Conv instead of Bitcast for the same arithmetic.

This fixes opt/fehler310.c.
parent 7ae90851
......@@ -6354,6 +6354,10 @@ again:
dbg_info *dbgi = get_irn_dbg_info(n);
ir_node *block = get_nodes_block(n);
ir_mode *mode = get_irn_mode(n);
ir_mode *op_mode = get_irn_mode(new_op);
if (get_mode_arithmetic(mode) == get_mode_arithmetic(op_mode)) {
return new_rd_Conv(dbgi, block, new_op, mode);
return new_rd_Bitcast(dbgi, block, new_op, mode);
return n;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment