Commit 1d950fd7 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files


parent 6aefa6ac
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment