needed is_Bad check
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 29 Nov 2004 10:48:50 +0000 (10:48 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 29 Nov 2004 10:48:50 +0000 (10:48 +0000)
[r4490]

ir/ir/iropt.c

index 60ad50e..ce10050 100644 (file)
@@ -97,7 +97,7 @@ static tarval *computed_value_Sub(ir_node *n)
   tarval *tb;
 
   /* a - a */
-  if (a == b)
+  if (a == b && !is_Bad(a))
     return get_tarval_null(get_irn_mode(n));
 
   ta = value_of(a);