Commit 9cd833e4 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ia32: Remove the never set flag x86_create_am_entities_ip_relative.

parent 213824f7
......@@ -172,9 +172,7 @@ static ir_node *eat_immediates(x86_address_t *addr, ir_node *node,
if (is_Add(node)) {
ir_node *left = get_Add_left(node);
ir_node *right = get_Add_right(node);
bool entity_ok = (addr->entity == NULL) &&
((flags & x86_create_am_entities_ip_relative) == 0
|| (addr->base == NULL));
bool entity_ok = addr->entity == NULL;
if (is_immediate(left, false, entity_ok)) {
eat_immediate(addr, left, false);
......@@ -187,9 +185,7 @@ static ir_node *eat_immediates(x86_address_t *addr, ir_node *node,
} else if (is_Sub(node)) {
ir_node *left = get_Sub_left(node);
ir_node *right = get_Sub_right(node);
bool entity_ok = (addr->entity == NULL) &&
((flags & x86_create_am_entities_ip_relative) == 0
|| (addr->base == NULL));
bool entity_ok = addr->entity == NULL;
if (is_immediate(right, true, entity_ok)) {
eat_immediate(addr, right, true);
......
......@@ -40,9 +40,6 @@ typedef enum x86_create_am_flags_t {
x86_create_am_force = 1U << 0,
/** Fold AM, even if the root node has two users. */
x86_create_am_double_use = 1U << 1,
/** Global entities need to be addressed relative to the instruction
* pointer */
x86_create_am_entities_ip_relative = 1U << 2,
} x86_create_am_flags_t;
/**
......
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