Commit c353ea5c authored by yb9976's avatar yb9976
Browse files

Load-store optimization: Removed wrong special case.

This fixes opt/loadstore6.c.
parent 4ba94858
......@@ -731,15 +731,6 @@ static changes_t follow_Mem_chain(ir_node *load, ir_node *curr)
if (new_ptr) {
res |= NODES_CREATED;
ptr = new_ptr;
/*
* Special case: If new_ptr points to
* a constant, we *can* replace the
* Load immediately.
*/
if (find_constant_entity(new_ptr)) {
set_Load_ptr(load, new_ptr);
return res | DF_CHANGED;
}
} else {
ir_alias_relation rel = get_alias_relation(
get_CopyB_dst(pred),
......
Markdown is supported
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