bugfix
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Mon, 25 Oct 2004 07:55:44 +0000 (07:55 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Mon, 25 Oct 2004 07:55:44 +0000 (07:55 +0000)
[r4199]

ir/opt/ldstopt.c

index c83c293..139c11e 100644 (file)
@@ -228,7 +228,11 @@ static int optimize_load(ir_node *load)
         info->projs[pn_Load_X_except] = NULL;
       }
 
-      if (variability_constant == get_entity_variability(ent)) {
+      if (variability_constant == get_entity_variability(ent)
+         && is_atomic_entity(ent)) {   /* Might not be atomic after
+                                        lowering of Sels.  In this
+                                        case we could also load, but
+                                        it's more complicated. */
         /* more simpler case: we load the content of a constant value:
          * replace it by the constant itself
          */