Commit e3cefc3a authored by Christoph Mallon's avatar Christoph Mallon
Browse files

irmemory: Always (try to) climb to the base address in _get_alias_relation().

This fixes opt/loadstore8.c.
Though it does not correct all cases.
More work is needed here.
parent 694369cf
...@@ -266,7 +266,7 @@ static ir_alias_relation _get_alias_relation( ...@@ -266,7 +266,7 @@ static ir_alias_relation _get_alias_relation(
* sym_offset{1,2} to be sets, and compare the sets. * sym_offset{1,2} to be sets, and compare the sets.
*/ */
while (have_const_offsets && is_Add(addr1)) { while (is_Add(addr1)) {
ir_mode *mode_left = get_irn_mode(get_Add_left(addr1)); ir_mode *mode_left = get_irn_mode(get_Add_left(addr1));
ir_node *ptr_node; ir_node *ptr_node;
...@@ -299,7 +299,7 @@ follow_ptr1: ...@@ -299,7 +299,7 @@ follow_ptr1:
addr1 = ptr_node; addr1 = ptr_node;
} }
while (have_const_offsets && is_Add(addr2)) { while (is_Add(addr2)) {
ir_mode *mode_left = get_irn_mode(get_Add_left(addr2)); ir_mode *mode_left = get_irn_mode(get_Add_left(addr2));
ir_node *ptr_node; ir_node *ptr_node;
......
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