Add simple transfer function for Confirm in fp-vrp.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 29 Apr 2011 11:50:24 +0000 (13:50 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 29 Apr 2011 11:50:24 +0000 (13:50 +0200)
ir/opt/fp-vrp.c

index 11a169e..e25715f 100644 (file)
@@ -258,6 +258,15 @@ result_unknown_X:
                                break;
                        }
 
+                       case iro_Confirm: {
+                               ir_node* const v = get_Confirm_value(irn);
+                               bitinfo* const b = get_bitinfo(v);
+                               /* TODO Use bound and relation. */
+                               z = b->z;
+                               o = b->o;
+                               break;
+                       }
+
                        case iro_Shl: {
                                bitinfo*   const l  = get_bitinfo(get_Shl_left(irn));
                                bitinfo*   const r  = get_bitinfo(get_Shl_right(irn));