Commit 924a44f2 authored by yb9976's avatar yb9976
Browse files

Fixed condition for CopyB nodes.

This fixes opt/loadstore4.c.
parent 5d1f61cd
......@@ -585,7 +585,7 @@ static ir_node *try_update_ptr_CopyB(ir_node *load, ir_node *load_base_ptr,
long load_size = get_mode_size_bytes(load_mode);
if (load_src_offset + load_size > n_copy
|| load_src_offset < 0) {
|| load_src_offset < src_offset) {
return NULL;
}
......
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