summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-01-27 16:51:35 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-01-28 14:31:13 +0100
commite3cefc3a2b72c6d8cdd5fc3a84bde49461ce8669 (patch)
treeca18fe5fceaf151577e505382f1bc451adb45c72 /ir/ana
parent694369cf765ed7c83ecddf6339a6e23feabfa843 (diff)
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.
Diffstat (limited to 'ir/ana')
-rw-r--r--ir/ana/irmemory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/ana/irmemory.c b/ir/ana/irmemory.c
index 14e12db..4392f63 100644
--- a/ir/ana/irmemory.c
+++ b/ir/ana/irmemory.c
@@ -266,7 +266,7 @@ static ir_alias_relation _get_alias_relation(
* 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_node *ptr_node;
@@ -299,7 +299,7 @@ follow_ptr1:
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_node *ptr_node;