Commit 3226245d authored by Christoph Mallon's avatar Christoph Mallon
Browse files

amd64: Do not needlessly swap base and index of Lea.

parent 973714c2
......@@ -828,8 +828,8 @@ static ir_node *create_Lea_as_Add(ir_node *node, ir_node *op1, ir_node *op2)
} else {
in[arity++] = be_transform_node(op1);
in[arity++] = be_transform_node(op2);
addr.index_input = 0;
addr.base_input = 1;
addr.base_input = 0;
addr.index_input = 1;
reqs = reg_reg_reqs;
}
......
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