disable load from static const optimisation for new-style initializers (until we...
authorMatthias Braun <matze@braunis.de>
Tue, 12 Aug 2008 11:28:40 +0000 (11:28 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 12 Aug 2008 11:28:40 +0000 (11:28 +0000)
[r21118]

ir/opt/ldstopt.c

index dcfc739..b67bafe 100644 (file)
@@ -782,7 +782,7 @@ static unsigned optimize_load(ir_node *load)
                                } else {
                                        compound_graph_path *path = get_accessed_path(ptr);
 
-                                       if (path) {
+                                       if (path && !ent->has_initializer) {
                                                ir_node *c;
 
                                                assert(is_proper_compound_graph_path(path, get_compound_graph_path_length(path)-1));