Treat conversions between the same size as downconv to get rid of unnecessary convers...
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 4 Oct 2008 16:57:08 +0000 (16:57 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 4 Oct 2008 16:57:08 +0000 (16:57 +0000)
[r22477]

ir/opt/convopt.c

index 5ecf85e..354c2d5 100644 (file)
@@ -87,7 +87,7 @@ int is_downconv(ir_mode *src_mode, ir_mode *dest_mode)
        return
                mode_is_int(src_mode) &&
                mode_is_int(dest_mode) &&
-               get_mode_size_bits(dest_mode) < get_mode_size_bits(src_mode);
+               get_mode_size_bits(dest_mode) <= get_mode_size_bits(src_mode);
 }
 
 static