Commit d63b9dd0 authored by Andreas Fried's avatar Andreas Fried
Browse files

Skip multiple downconvs when building integer-to-integer Convs.

parent 872aa5eb
......@@ -3697,6 +3697,10 @@ static ir_node *create_I2I_Conv(ir_mode *src_mode, ir_mode *tgt_mode,
}
#endif
while(is_downconv(op)) {
op = get_Conv_op(op);
}
if (be_upper_bits_clean(op, src_mode)) {
return be_transform_node(op);
}
......
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