From: Götz Lindenmaier Date: Mon, 25 Oct 2004 07:55:44 +0000 (+0000) Subject: bugfix X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1d950fd7ce801e0c722b193e0d77884b8bfcd5eb;p=libfirm bugfix [r4199] --- diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index c83c293d4..139c11e13 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -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 */