From 1d950fd7ce801e0c722b193e0d77884b8bfcd5eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Mon, 25 Oct 2004 07:55:44 +0000 Subject: [PATCH] bugfix [r4199] --- ir/opt/ldstopt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.20.1